mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
phpstan: added a custom rule to disallow strict equality operators on enum members
comparing enums with equality operators is unreliable because there is no guarantee that the enum objects won't be somehow duplicated, through serialization, cloning or ext-parallel dumb object copying. This means that two equal enum objects may not be thw same object.
This commit is contained in:
@ -54,7 +54,8 @@
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"pocketmine\\": "tests/phpunit/"
|
||||
"pocketmine\\": "tests/phpunit/",
|
||||
"pocketmine\\phpstan\\rules\\": "tests/phpstan/rules"
|
||||
}
|
||||
},
|
||||
"repositories": [
|
||||
|
Reference in New Issue
Block a user