For questions specific to the usage and features of PHP 8. When using this tag also include the more generic [php] tag.
after updating my mac to php 8 laravel app stopped working, this is the error I'm getting: Deprecated: Method ReflectionParameter::getClass() …
php laravel php-8Deprecated: Required parameter $xxx follows optional parameter $yyy in... Since upgrading to PHP 8.0 this error is thrown when running code …
php function-signature php-8In PHP, I sometimes catch some exceptions with try/catch : try { ... } catch (Exception $e) { // Nothing, this is normal } With that …
php exception error-handling try-catch php-8Can I allow two different types using type hinting? E.g. parameter $requester could be either of User or File: …
php type-hinting php-8In PHP you can call a function with no arguments passed in so long as the arguments have default values …
php named-parameters default-arguments php-8I just installed PHP 8 and I have this error appears? How do I fix it? Fatal error: Declaration of OM\…
php php-8Is it possible in php like in python to have named function parameters? An example use case is: function foo($…
php named-parameters php-8I have a docker container with php 8.0.0-dev and composer. I want to create a Laravel application to test the …
php laravel composer-php php-8This is what I would like to use: #[ORM\Column(type: "string")] instead of this: /** * @ORM\Column(type="string") */ But …
php symfony doctrine-orm doctrine php-8