Giter Site home page Giter Site logo

PHP 8.2 about lmcuser HOT 8 CLOSED

lm-commons avatar lm-commons commented on June 3, 2024
PHP 8.2

from lmcuser.

Comments (8)

visto9259 avatar visto9259 commented on June 3, 2024 2

Hi everyone,

Let me take a look at the PR and make a release.

Sorry for the delay, we are only spending time on maintenance on our spare time...

from lmcuser.

visto9259 avatar visto9259 commented on June 3, 2024 1

This will take a few iterations.
There are many deprecation notices when running the test suite on php 8.2 in addition to the one mentioned above.

from lmcuser.

curzio-della-santa avatar curzio-della-santa commented on June 3, 2024 1

@curzio-della-santa did you test other sources how it works with PHP 8.2? any other issues?

Yes I did test, and I found no additional dynamic assignment in this library.

from lmcuser.

curzio-della-santa avatar curzio-della-santa commented on June 3, 2024

Agree with lon9man

I've checked the code, the mentioned line sets a dynamic-property that does not seem to be used anywhere.

Since there is a public getter for Request, this line could be removed without causing problems to the vast majority of user.
If someone is relying on this property to exist (despite the poor programming), can change the code to use the getter instead.

Because depreaction notices are usually not shown in production environments, is it currently for me only an annoying problem in test environment.

from lmcuser.

tomekszad avatar tomekszad commented on June 3, 2024

@lon9man @curzio-della-santa did you manage to overcome this issue? If yes, how? Thank you for your inputs!

from lmcuser.

curzio-della-santa avatar curzio-della-santa commented on June 3, 2024

@tomekszad I've now written the PR to delete this malicious line, hope the maintainers of the library approve it for next release.

As said above, is only a warning for a line that can be simply commented out or removed in development environment, where deprecation warning are normally returned in the output.

In my current situation I can simply comment out the line after composer install.

Can be done with following command on CLI:

sed -i '100 s/^/\/\//' vendor/lm-commons/lmc-user/src/Authentication/Adapter/AdapterChainEvent.php

(Warning, this script comments out line 100 regardless what's in it, use at own risk)

from lmcuser.

tomekszad avatar tomekszad commented on June 3, 2024

@curzio-della-santa thank you for your reply! We on the other hand, have simply forked the repo, and fixed it on our fork.

Cheers!

from lmcuser.

lon9man avatar lon9man commented on June 3, 2024

@curzio-della-santa did you test other sources how it works with PHP 8.2? any other issues?

from lmcuser.

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.