Code Monkey home page Code Monkey logo

Comments (3)

Wirone avatar Wirone commented on June 27, 2024 1

Support for PHP 8.3 was officially added in v3.40.0, so you need to upgrade Fixer in your project to this version. Alternatively you can set PHP_CS_FIXER_IGNORE_ENV=1 when running Fixer to allow higher version of PHP. But using latest version of the tool is highly recommended 🙂.

from php-cs-fixer.

kubawerlos avatar kubawerlos commented on June 27, 2024 1

So by your Packagist config, Im using latest Packagist version.

What is "your Packagist config"? This one: https://packagist.org/packages/friendsofphp/php-cs-fixer, showing that latest version is v3.41.1?

kub@:~/code$ mkdir issue7596
kub@:~/code$ cd issue7596
kub@:~/code/issue7596$ composer require --dev --quiet friendsofphp/php-cs-fixer
kub@:~/code/issue7596$ composer show | grep fixer
friendsofphp/php-cs-fixer          v3.41.1 A tool to automatically fix PHP code style

☝🏼 shows it is fine.

My first guess is that PHP version (maybe set via platform) is stopping you from installing newer version, see: compare/v3.4.0...v3.5.0 - 3.4.0 supports PHP >= 7.2.5, when next one, 3.5.0 requires minimum PHP 7.4.

A second guess would be that other dependencies are blocking you from upgrading PHP CS Fixer, try:

composer why-not friendsofphp/php-cs-fixer ^3.40

from php-cs-fixer.

Yousha avatar Yousha commented on June 27, 2024

I think the problem is Packagist version config...

I used composer require friendsofphp/php-cs-fixer to install PHPCSFixer. So by your Packagist config, Im using latest Packagist version.

Here is my composer.json file:

    "require": {
        "friendsofphp/php-cs-fixer": "^3.4"
    },

See? version "^3.4" will be installed by default.

from php-cs-fixer.

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.