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

Fix delete_post() param type hint #27

Merged
merged 2 commits into from
May 8, 2024
Merged

Conversation

HPiirainen
Copy link
Contributor

Storage::delete_post() expects first parameter to be of type int although the Oopi ID can be a string as well. F. ex. PHPStan is complaining about this. Changed the type hint to int|string, also ran composer update and installed PHPCS rules.

Copy link

github-actions bot commented May 6, 2024

Composer package changes
Prod Packages Operation Base Target
composer/installers Upgraded v2.0.1 v2.2.0
Dev Packages Operation Base Target
antecedent/patchwork Upgraded 2.1.17 2.1.28
automattic/vipwpcs New - 2.3.4
dealerdirect/phpcodesniffer-composer-installer New - v1.0.0
devgeniem/geniem-rules-codesniffer New - 1.2.5
doctrine/instantiator Upgraded 1.4.0 2.0.0
mockery/mockery Upgraded 1.4.4 1.6.11
myclabs/deep-copy Upgraded 1.10.2 1.11.1
nikic/php-parser Upgraded v4.13.2 v5.0.2
phar-io/manifest Upgraded 2.0.3 2.0.4
phar-io/version Upgraded 3.1.0 3.2.1
phpcompatibility/php-compatibility New - 9.3.5
phpunit/php-code-coverage Upgraded 9.2.10 9.2.31
phpunit/phpunit Upgraded 9.5.10 9.6.19
roave/security-advisories Changed dev-latest 31d9d9e dev-latest b88a8ff
sebastian/cli-parser Upgraded 1.0.1 1.0.2
sebastian/comparator Upgraded 4.0.6 4.0.8
sebastian/complexity Upgraded 2.0.2 2.0.3
sebastian/diff Upgraded 4.0.4 4.0.6
sebastian/environment Upgraded 5.1.3 5.1.5
sebastian/exporter Upgraded 4.0.4 4.0.6
sebastian/global-state Upgraded 5.0.3 5.0.7
sebastian/lines-of-code Upgraded 1.0.3 1.0.4
sebastian/recursion-context Upgraded 4.0.4 4.0.5
sebastian/resource-operations Upgraded 3.0.3 3.0.4
sebastian/type Upgraded 2.3.4 3.2.1
sirbrillig/phpcs-variable-analysis New - v2.11.18
squizlabs/php_codesniffer New - 3.9.2
theseer/tokenizer Upgraded 1.2.1 1.2.3
wp-coding-standards/wpcs New - 2.3.0
phpdocumentor/reflection-common Removed 2.2.0 -
phpdocumentor/reflection-docblock Removed 5.3.0 -
phpdocumentor/type-resolver Removed 1.5.1 -
phpspec/prophecy Removed v1.15.0 -
symfony/polyfill-ctype Removed v1.23.0 -
webmozart/assert Removed 1.10.0 -

@HPiirainen HPiirainen requested a review from a team May 6, 2024 09:45
@tim0haapala tim0haapala self-assigned this May 8, 2024
@@ -25,7 +25,7 @@
"license": "GPL-3.0-or-later",
"minimum-stability": "stable",
"require": {
"php": ">=7.4 || ^8.0 || ^8.1",
"php": ">=7.4 || ^8.0 || ^8.1 || ^8.2",

Choose a reason for hiding this comment

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

Ei tarvii muutta, mutta tän voisi ehkä kirjailla jotenkin ^7.4 || >=8.0 <8.3https://getcomposer.org/doc/articles/versions.md#version-range

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tottahan tuo on

@HPiirainen HPiirainen merged commit 9847ed3 into master May 8, 2024
4 checks passed
@HPiirainen HPiirainen deleted the fix-delete-post-param-type branch May 8, 2024 09:19
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.

2 participants