summaryrefslogtreecommitdiff
path: root/Zend/tests/type_declarations/strict_include_weak_2.inc
blob: d4ee8a836b24170ca24c170286d9e3006bc30937 (plain)
1
2
3
4
5
6
7
8
9
<?php

// implicitly weak code

function takes_int(int $x) {
    echo "Success!";
}

takes_int(1.0); // succeeds in weak mode