Comments (7)
I will prepare a fix for it.
from pdepend.
Thanks @SpartakusMd 🙏
If it helps I reproduced the issue in a unit test:
https://github.com/pdepend/pdepend/compare/fix/readonly-name
from pdepend.
Thanks for the very quick fix @SpartakusMd, much appreciated ❤️
@fengelniederhammer, @jacob418, @AlexAzartsev would you mind to try to composer require pdepend/pdepend:dev-master
and see if it fixes the readonly-related issues for you?
from pdepend.
Tested right now, errors are gone! Ty for the fast fix!
from pdepend.
In my project I have a method called readonly
calling this gives me the same error.
MyFormField::make('My not-editable field')->readonly()
Unexpected token: readonly, line: 110, col: 19, file: /var/www/html/app/Nova/Appointment.php
Considering phpmd/phpmd#915 this seems to be something really special for the term 'readonly' or 'readOnly' no matter if it is a property or method.
PHP: 8.0.9
phpmd: 2.10.2
pdepend: 2.10.1
Installed via composer 2.1.6
from pdepend.
I have the same issue with ->readonly()
method
from pdepend.
@SpartakusMd do you think we can fix it or we should revert the readonly
change?
from pdepend.
Related Issues (20)
- PHP 8.3 syntax
- Values of hnd and hnt are mixed up in XML report HOT 1
- Response for a class (RFC) measure HOT 4
- Critical Error: A compilation unit should contain at least one token HOT 3
- Typo in encoding name HOT 4
- Invalid characters passed to "octdec" HOT 1
- Compatibility Issue with Symfony/Config v7.0.0 in `getConfigTreeBuilder` Method HOT 10
- Broken Interface Type for Symfony\Component\Config\Definition\ConfigurationInterface::getConfigTreeBuilder HOT 2
- Missing .phar's HOT 1
- Major version 3.0.0 HOT 2
- Fail to parse throw exception in key offset access
- Trait method collision error for valid php file
- TooManyPublicMethods ignore exceptions HOT 1
- Use of "Parent" in namespace triggers "Unexpected token: Parent".
- Backed enum expects the type to be all lowercase HOT 2
- `Unexpected token: |` when using union typed constants HOT 4
- "Unexpected token: [" error when accessing array constant item HOT 2
- Cannot load xml namespace for validating config HOT 2
- FIlter pattern exclude regression HOT 7
- Handle comments when parsing expressions
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 pdepend.