Giter Site home page Giter Site logo

PHP 7.4 PHP Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in vendor/tommyknocker/pdo-database-class/PDODb.php on line 435 about pdo-database-class HOT 6 CLOSED

tommyknocker avatar tommyknocker commented on July 20, 2024
PHP 7.4 PHP Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in vendor/tommyknocker/pdo-database-class/PDODb.php on line 435

from pdo-database-class.

Comments (6)

bas-surlinio avatar bas-surlinio commented on July 20, 2024

Replace this line with:
if (isset($dataColumns[0])) $this->query .= ' ('.implode(', ',$dataColumns).') ';

from pdo-database-class.

Phenomite avatar Phenomite commented on July 20, 2024

@bas-surlinio

Replace this line with:
if (isset($dataColumns[0])) $this->query .= ' ('.implode(', ',$dataColumns).') ';

As in this?

L435:

if (isset($dataColumns[0])) $this->query .= ' (`\'.implode(\'`, `\'$dataColumns).\'`) ';

from pdo-database-class.

bas-surlinio avatar bas-surlinio commented on July 20, 2024

Correct

from pdo-database-class.

borakayalar avatar borakayalar commented on July 20, 2024
        //if (isset($dataColumns[0])) $this->query .= ' (`'.implode($dataColumns, '`, `').'`) ';
        if (isset($dataColumns[0])) $this->query .= ' (`' . implode('`, `', $dataColumns) . '`) ';

from pdo-database-class.

gvlasov avatar gvlasov commented on July 20, 2024

Will there be a release with this change?

from pdo-database-class.

tommyknocker avatar tommyknocker commented on July 20, 2024

Yeah, sure. Releazed v1.1.1 today

from pdo-database-class.

Related Issues (12)

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.