Comments (3)
Hi. That's weird. I will have a look asap.
from phpat.
From the looks of it there's only a single instance of ClassnameRule
being created which contains all the defined constraints.
The getParams
method always returns the parameters for the constraint which was first created, where it should return the parameters of the constraint you're checking against.
Not sure how to fix this issue, but hope it helps.
Update:
I pushed a potential fix
from phpat.
Fixed by @gertjuhh and released in https://github.com/carlosas/phpat/releases/tag/0.10.14 🚀
Thanks a lot for the fix. It was a tricky one and I'm extremely busy these days. Cheers
from phpat.
Related Issues (20)
- Stringable not included in ignore_built_in_classes HOT 3
- should the config files be moved to their default locations / Makefile? HOT 1
- PHP enums should not be final HOT 1
- Built-in classes should not be ignored when specifically requested in rules
- Readonly class requirement HOT 2
- After update psalm dies to unknown class HOT 1
- "shouldExtend" assertion not applying to classes that do not have parent class HOT 3
- PHPStan throws violation on accessing `->because()` after `->excluding()` HOT 2
- Extending the rules HOT 8
- Testing the arch tests HOT 2
- Ability to combine assertions HOT 3
- Add an ability to check class naming HOT 4
- `Selector::inNamespace` incorrectly matches classes outside namespace with a similar name
- Report old `includeTrait` or newer `mustInclude` functions in 0.10+ version
- Plugins should not be able to referance other plugins HOT 6
- Ability to restrict method calls HOT 1
- Ability to dynamically create tests like phpunit data providers HOT 1
- Ability to fail all classes based on selectors HOT 3
- Namespace naming assertions HOT 2
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 phpat.