Skip to content

[Asset] Don't pass null to strpos() #41559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 6, 2021

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Jun 6, 2021

Q A
Branch? 5.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets Part of #41552
License MIT
Doc PR N/A

Signed-off-by: Alexander M. Turek <me@derrabus.de>
@nicolas-grekas
Copy link
Member

Thank you @derrabus.

@nicolas-grekas nicolas-grekas merged commit c762e1c into symfony:5.3 Jun 6, 2021
@derrabus derrabus deleted the bugfix/asset-strpos branch June 6, 2021 09:19
nicolas-grekas added a commit that referenced this pull request Nov 6, 2021
…haljusiega)

This PR was merged into the 5.3 branch.

Discussion
----------

[Asset][Security] Fixed leftover deprecations PHP 8.1

| Q             | A
| ------------- | ---
| Branch?       | 5.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Part of #41552, leftover #41559
| License       | MIT
| Doc PR        | ~

Found during testing **PHP 8.1** and Symfony **5.4.0-BETA1**

1. src/Symfony/Component/Asset/VersionStrategy/JsonManifestVersionStrategy.php
 ![obraz](https://user-images.githubusercontent.com/16488888/140545163-837ea4c4-907b-44e7-8f8e-7454f7d66be3.png)

Looks like #41559 didn't solve the deprecation completely.

2. src/Symfony/Component/Security/Http/Authenticator/JsonLoginAuthenticator.php
![obraz](https://user-images.githubusercontent.com/16488888/140545313-794c0136-cef8-4434-a8c2-21c3d77ef196.png)

`Request::getRequestFormat()` and `Request::getContentType()` may return nulls.

Commits
-------

86934e6 fixed leftover deprecations PHP 8.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants