GithubHelp home page GithubHelp logo

Comments (11)

scs2771 avatar scs2771 commented on June 6, 2024 1

I will talk it over with my team. We are currently down to 3 or 4 projects still using acls. We look to see if it would be best to move to what our other projects are using or update this plugin.

from acl.

lilHermit avatar lilHermit commented on June 6, 2024 1

I'm happy to attempt this.

The main PHP-8 compatibility issue is

[Deprecated (8192)]: ctype_digit(): Argument of type App\Model\Entity\User will be interpreted as string in the future [in /app/vendor/cakephp/acl/src/Model/Table/AclNodesTable.php, line 60]

which is in src/Model/Table/AclNodesTable.php caused by

        } elseif (is_int($ref) || ctype_digit($ref)) {

I've run the testsuite and there are no tests that cover the ctype_digit condition. So I'm sure casting $ref to string will be appropriate.

from acl.

mmahgoub avatar mmahgoub commented on June 6, 2024 1

Shouldn't this be closed by now since #173 has already been merged?

from acl.

markstory avatar markstory commented on June 6, 2024

The ACL plugin has not been updated for PHP8. Any chance you are interested in helping with that?

from acl.

umer936 avatar umer936 commented on June 6, 2024

Ah, I see. Tbh I'm not well versed in CakePHP or the ACL plugin. I may give it a shot after I get a little more experience in a week or 2, unless someone beats me to it.

from acl.

scs2771 avatar scs2771 commented on June 6, 2024

Is updating this to use PHP 8 in the works or is this project dead?

from acl.

markstory avatar markstory commented on June 6, 2024

Is updating this to use PHP 8 in the works or is this project dead?

There is no active work to update this to PHP8. As a community run project it can only really die when people stop contributing :) If you'd like to help improve the PHP8 compatibility I'm happy to do reviews, merge changes and tag releases but I don't have much time to devote to this project beyond that.

from acl.

umer936 avatar umer936 commented on June 6, 2024

@scs2771
I think it would not be too difficult to upgrade it; however, I realized that I didn't need to as we use PHP 7.4, not PHP 8.
Additionally, our other sites are using TinyAuth or CakeDC Users plugin instead of Acl.

from acl.

nook24 avatar nook24 commented on June 6, 2024

Are there any known issues with PHP 8? I run this plugin on php 8 without any issues so far. Am I missing something?

from acl.

matteorebeschi avatar matteorebeschi commented on June 6, 2024

Any news regarding this?

from acl.

lilHermit avatar lilHermit commented on June 6, 2024

PR created for this #173

from acl.

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.