You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As we discussed with @sivaschenko in Slack -
✔ that works fine for the client code, in case if the class class doesn't have any inheritance and *strict types not declared in the client code: https://3v4l.org/NBiQU
❌ that doesn't for the client code, in case if the class doesn't have any inheritance and declared strict types in the client code: https://3v4l.org/3ovqX
<?phpdeclare(strict_types=1);
class A
{
publicfunctionencodeUrlParam(string$string)
{
echo$string;
}
}
$a = newA();
$a->encodeUrlParam(1);
Hi,
This is a follow-up on the magento/magento2#33353 (comment).
While working on magento/magento2#33353, there were added following changes:
The SVC failure was failing:
Basically, adding argument type shouldn't introduce any breaking changes since PHP 7.2 (thanks to https://wiki.php.net/rfc/parameter-no-type-variance).
Examples:
Here are two examples that works fine
❗ ❌ Note: it doesn't work like that for return types https://3v4l.org/ti9uU
The text was updated successfully, but these errors were encountered: