Skip to content

vudaltsov/symfony-property-access-php84

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symfony Property Access is incompatible with PHP 8.4

Run:

composer install
php index.php

See output:

array(2) {
  ["property"] => string(8) "readonly"
  ["PropertyAccessor::isWritable()"] => bool(false)
}
array(3) {
  ["property"] => string(18) "public_private_set"
  ["PropertyAccessor::isWritable()"] => bool(true)
  ["PropertyAccessor::setValue()"] => string(127) "Fail! Cannot modify private(set) property Foo::$public_private_set from scope Symfony\Component\PropertyAccess\PropertyAccessor"
}
array(3) {
  ["property"] => string(20) "public_protected_set"
  ["PropertyAccessor::isWritable()"] => bool(true)
  ["PropertyAccessor::setValue()"] => string(131) "Fail! Cannot modify protected(set) property Foo::$public_protected_set from scope Symfony\Component\PropertyAccess\PropertyAccessor"
}
array(3) {
  ["property"] => string(19) "virtual_no_set_hook"
  ["PropertyAccessor::isWritable()"] => bool(true)
  ["PropertyAccessor::setValue()"] => string(53) "Fail! Property Foo::$virtual_no_set_hook is read-only"
}

Expected ["PropertyAccessor::isWritable()"] => bool(false) for all properties.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages