Coder Social home page Coder Social logo

Comments (7)

SpartakusMd avatar SpartakusMd commented on June 12, 2024 1

I will prepare a fix for it.

from pdepend.

kylekatarnls avatar kylekatarnls commented on June 12, 2024 1

Thanks @SpartakusMd 🙏

If it helps I reproduced the issue in a unit test:
https://github.com/pdepend/pdepend/compare/fix/readonly-name

from pdepend.

kylekatarnls avatar kylekatarnls commented on June 12, 2024 1

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.

jacob418 avatar jacob418 commented on June 12, 2024 1

Tested right now, errors are gone! Ty for the fast fix!

from pdepend.

jacob418 avatar jacob418 commented on June 12, 2024

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.

AlexAzartsev avatar AlexAzartsev commented on June 12, 2024

I have the same issue with ->readonly() method

from pdepend.

kylekatarnls avatar kylekatarnls commented on June 12, 2024

@SpartakusMd do you think we can fix it or we should revert the readonly change?

from pdepend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.