Comments (5)
I've checked php sources, there are special comparators for Closure
, DateTime
, DateTimeImmutable
, IntlBreakIterator
, IntlTimeZone
, PDO
, PDOStatement
, ArrayObject
, and SplObjectStorage
classes (search for ".compare_objects
" string).
from phpinspectionsea.
And most likely classes extending above ones have the same comparators (but it should be checked, seems it is not explained in docs).
from phpinspectionsea.
@dryabov : huge thanks for your research, PHP is keeping to surprise me.
from phpinspectionsea.
I've noticed "type unsafe comparison" showing up on DateTime objects as of right now, had this regressed since or something?
from phpinspectionsea.
@Rarst: would you please create a new issue for your case?
from phpinspectionsea.
Related Issues (20)
- com.intellij.diagnostic.PluginException: Short name 'CompactCanBeUsedInspection' is not unique
- Incorrect recommendation for `compact` for array unpacking statements
- Inspection suggests using assertFileDoesNotExists instead of assertFileDoesNotExist
- Enum compression with the value tryFrom is always seems to be false
- Project maintenance (or lack thereof) HOT 2
- False positive to add "symfony/var-dumper" to "dev packages"
- Wrong categories names
- Exception in 2023.3 HOT 1
- Substring comparison flaws with hex characters
- Incorrectly suggests using str_ends_with() when language level is below 8 HOT 1
- False-positive : "[EA] Could provoke a PHP Fatal error ([] operator not supported for strings)" in test
- Null-safe operator after array access
- False positive message to delete the method, as the parent method is identical
- Invalid null coalescing operator suggestion for a class consent on a nullable object variable HOT 1
- Undefined function 'mime_content_type' HOT 1
- Maintenance: final checking on bug-fixing and development constraints HOT 3
- Pattern seems to be not valid. HOT 2
- 'Unknown inspection: .' when adding @noinspection PhpUnused in PHPStorm HOT 3
- Crashes every time phpstorm starts HOT 7
- False positive: This statement seems to be disconnected from its parent foreach. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpinspectionsea.