Skip to content
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

Merge master into 1.0.x #554

Open
wants to merge 38 commits into
base: 1.0.x
Choose a base branch
from
Open

Conversation

KorvinSzanto
Copy link
Contributor

@KorvinSzanto KorvinSzanto commented Apr 16, 2022

This change:

  1. Merges master into 1.0.x
  2. Removes the extra phpstan/psalm exceptions
  3. Updates the phpcs setting to PSR-12
  4. Updates some dependencies to latest working versions

KorvinSzanto and others added 30 commits June 29, 2019 09:18
…ircleci

Add phpcs and circleci configurations and run phpcs check on PRs
I did this in alphabetical order :D
* Implement \JsonSerializable for Scopes

* Update CHANGELOG.md noting changes from thephpleague#462
Change typehints in the phpDoc for the setters to match CursorInterface types.
…with-sub-relation

Allow sub relations with modifier
update travis to allow failures on 54 and 55
…r-minimum-versions

Fix tests for PHP 5.4 and 5.5
* Adding test scripts to composer.json for ease of use

* Testing github actions based off thephpleague#501

* Fixing typo in matric

* Fixing setup php configuration in github action

* Sending coverage off to scrutinizer

* Removing circle ci config

* Matching travis PHP version checks

* Commenting out coverage report for scrutinizer

* Removing scrutinizer sending for now

* Testing github action and removing travis

* Adding travis config back - as it is causing issues on the PR

* Pushing to separate workflows

* Renaming main to run tests

* Adding scrutinizer steps as final steps so coverage report can be sent

* Swapping travis badge for github actions badge

Co-authored-by: Steve McDougall <[email protected]>
…hephpleague#534)

* clean up php code sniffer violations and update composer.json to 7.0

* remove the string typehint til 7.1 so we can pass the nullable flag

* add return type hints to ScopeFactoryInterface

Co-authored-by: = <=>
* Use #[\ReturnTypeWillChange]

* Fix ArrayAccess interface

* Fix(): Deprecated: explode(): Passing null to parameter thephpleague#2 ($string) of type string is deprecated
* Make sure CI is green

* Remove .travis.yml

* Minor CS

* Fixed a bunch of tests

* Remove scrutinizer
* Psalm fixes

* PHPStan fixes

* More static fixers

* fixes

* typo
* fix: PHP 8.1 support (thephpleague#1)

* fixes

Co-authored-by: oprypkhantc <[email protected]>
* Added type hints

* Added all types in src

* Fixed type errors in tests

* fixess

* Fixed testss

* cs fixes
*/
#[\ReturnTypeWillChange]
Copy link

@diimpp diimpp Dec 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attributes are php8.0 feature and this particular attribute is php 8.1, but codebase minimal version is 7.4.

Don't tests crash on this line at 7.4?

https://php.watch/versions/8.1/ReturnTypeWillChange

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attributes are comments in every version before 8.0, and in every other version they are not evaluated at runtime.

The only way this could be an issue is if someone got the attribute from the method reflection instance and tried to run $attribute->newInstance(); outside of a try/catch which is pretty unlikely since it has no reason to be instantiated in any version.

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.