phpCAS icon indicating copy to clipboard operation
phpCAS copied to clipboard

Fix PHP 8.4 deprecations

Open cedric-anne opened this issue 1 year ago • 6 comments

Implicitly nullable parameter declarations are deprecated in PHP 8.4. The proposed change is safe and is not considered by PHP as a signature change, see https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated

cedric-anne avatar Sep 04 '24 07:09 cedric-anne

This can't pass the tests until PHP 8.4 is actually released, or it needs to specify the PHP version as 8.4-rc to use the beta version.

yakatz avatar Sep 26 '24 19:09 yakatz

Test suite fails because xdebug is not yet available for PHP 8.4.

cedric-anne avatar Nov 28 '24 09:11 cedric-anne

PHP8.4 is release now. Would be nice to merge this PR :-)

adoy avatar Mar 19 '25 17:03 adoy

👍 Would love to see this merged as well.

Mistralys avatar May 09 '25 09:05 Mistralys

i would also really appreciate the merge of this PR :)

floverdevel avatar May 12 '25 21:05 floverdevel

We would appreciate a merge too ...

androbi-com avatar Jun 10 '25 07:06 androbi-com

FYI: As a temporary fix, it is possible to install cedric-anne's version by referencing the commit directly in your Composer configuration:

"require": {
    "apereo/phpcas": "dev-master#77309b6a7f304a5f9e351bc52d8adc831989734f"
}

Where the hash is the latest commit as of today.

Note that if you also use roave/security-advisories, this will not be installable.

Mistralys avatar Aug 05 '25 14:08 Mistralys