Skip to content

chore: update psalm to 5.0#6931

Merged
kenjis merged 3 commits into
codeigniter4:4.3from
kenjis:update-psalm-5.0
Dec 3, 2022
Merged

chore: update psalm to 5.0#6931
kenjis merged 3 commits into
codeigniter4:4.3from
kenjis:update-psalm-5.0

Conversation

@kenjis

@kenjis kenjis commented Dec 2, 2022

Copy link
Copy Markdown
Member

Description

  • update psalm

https://github.com/vimeo/psalm/releases/tag/5.0.0

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • [] Unit testing, with >80% coverage
  • [] User guide updated
  • Conforms to style guide

@kenjis kenjis added the 4.3 label Dec 2, 2022
Comment thread system/Cookie/Cookie.php
* $cookie2->getName(); // prod_cookie
* ```
*
* @template-implements ArrayAccess<string, bool|int|string>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is generic typing. If we want to impose this too for phpstan, we may consider raising phpstan level to 6.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

5 to 6 is hard for existing code bases. I would of course love to see our level increase, so maybe we can baseline existing array issues and make the move.

@MGatner MGatner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please consider updating DevKit to match.

@kenjis kenjis merged commit 23db6ff into codeigniter4:4.3 Dec 3, 2022
@kenjis kenjis deleted the update-psalm-5.0 branch December 3, 2022 00:23
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.

3 participants