Skip to content

Fixed: deprecated notice with PHP 8.1 - #666

Closed
patrickallaert wants to merge 1 commit into
jsonrainbow:masterfrom
patrickallaert:fix-deprecated-notice-PHP-8.1
Closed

Fixed: deprecated notice with PHP 8.1#666
patrickallaert wants to merge 1 commit into
jsonrainbow:masterfrom
patrickallaert:fix-deprecated-notice-PHP-8.1

Conversation

@patrickallaert

@patrickallaert patrickallaert commented Jun 17, 2021

Copy link
Copy Markdown

As of PHP 8.1, the following notice could possibly appear:
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in ...

As of PHP 8.1, the following notice could possibly appear:
Deprecated: strlen(): Passing null to parameter jsonrainbow#1 ($string) of type string is deprecated in ...
@andypost

Copy link
Copy Markdown
Contributor

It affects composer on 8.1alpha1 Deprecation Notice: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in phar:///usr/local/bin/composer/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:48

@andypost

Copy link
Copy Markdown
Contributor

Valid composer issue composer/composer#9718

@derrabus

Copy link
Copy Markdown

duplicate of #657

@Seldaek

Seldaek commented Jul 21, 2021

Copy link
Copy Markdown
Contributor

Closing as I merged #657

@Seldaek Seldaek closed this Jul 21, 2021
SpacePossum added a commit to PHP-CS-Fixer/PHP-CS-Fixer that referenced this pull request Dec 1, 2021
This PR was merged into the master branch.

Discussion
----------

DX: test on PHP 8.1

Changes in `composer.json` must be reverted, this require:

- [x] [justinrainbow/json-schema](https://github.com/justinrainbow/json-schema) to be released with the fix: jsonrainbow/json-schema#666
- [x] [mikey179/vfsstream](https://github.com/bovigo/vfsStream) new v1 version to be released
- [x] [mikey179/vfsstream](https://github.com/bovigo/vfsStream) another version (with bovigo/vfsStream#261) to be released
- [x] [symfony/symfony](https://github.com/symfony/symfony) new version (with symfony/symfony#42260) to be released

Commits
-------

a4358ec Test on PHP 8.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants