Skip to content

Fix delete_post() param type hint#27

Merged
HPiirainen merged 2 commits intomasterfrom
fix-delete-post-param-type
May 8, 2024
Merged

Fix delete_post() param type hint#27
HPiirainen merged 2 commits intomasterfrom
fix-delete-post-param-type

Conversation

@HPiirainen
Copy link
Copy Markdown
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.

@github-actions
Copy link
Copy Markdown

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
Comment thread composer.json
"minimum-stability": "stable",
"require": {
"php": ">=7.4 || ^8.0 || ^8.1",
"php": ">=7.4 || ^8.0 || ^8.1 || ^8.2",
Copy link
Copy Markdown

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
Copy Markdown
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
@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