PHP Classes

type hint

Recommend this page to a friend!

      PHP Classes blog  >  PHP 7 Scalar Type Hin...  >  All threads  >  type hint  >  (Un) Subscribe thread alerts  
Subject:type hint
Summary:type hint bool and int
Messages:1
Author:caterina gordo
Date:2017-06-27 08:57:47
Update:2017-06-30 07:07:37
 

  1. type hint   Reply   Report abuse  
Picture of caterina gordo caterina gordo - 2017-06-30 07:07:37
function test(bool $param) {}
test(6546546);

Why is this code works on PHP7

 
For more information send a message to info at phpclasses dot org.