strikt types
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
<?php
|
||||
function debug($s) {
|
||||
declare(strict_types=1);
|
||||
|
||||
function debug(mixed $s): void {
|
||||
if(isset($_COOKIE['debug']))
|
||||
print_r($s);
|
||||
}
|
||||
|
||||
function debugCookie($on=true) {
|
||||
function debugCookie(bool $on = true): void {
|
||||
if($on) {
|
||||
setcookie('debug','1',time()+(60*60*24*365),"/");
|
||||
}else{
|
||||
setcookie('debug',null,0,"/");
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user