Comments (3)
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.
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.
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)
- Leading backslash in global namespace HOT 3
- `no_superfluous_phpdoc_tags` removes actual docs when these are after phpDoc tag HOT 16
- `leading_backslash_in_global_namespace` adds backslash to native types in phpdoc in global namespace HOT 2
- `method_chaining_indentation` should be executed after `no_space_around_double_colon` HOT 5
- PHP-CS-Fixer misinterprets class-name `Resource` HOT 8
- Add/enforce PHPUnit data provider return type HOT 3
- Invalid return generated by `simplified_null_return` with union typehint
- `leading_backslash_in_global_namespace` breaks generics HOT 4
- numeric_literal_separator breaks numbers HOT 2
- numeric_literal_separator breaks numbers < 1 HOT 7
- Cannot declare class [...] because the name is already in use HOT 1
- Lint not correct for a switch/case with ternary operator
- Symbols' casing is changed when there's name collision between imported class and imported function HOT 12
- After update `v3.47` binary_operator_space has changed HOT 4
- [3.47] `fully_qualified_strict_types` rule capitalizes class property first letter HOT 3
- PHP-CS-Fixer 3.47.0 changes class name `Assert` to `assert` HOT 2
- PHP-CS-Fixer 3.47.0 changes literal strings HOT 1
- Confusion between `use Classname` and `use function classname` HOT 1
- Incorrect formatting of a template file using statement_indentation HOT 1
- Syntax error, unexpected token ">" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-cs-fixer.