Skip to content

Fix: Do not pass null to function that expects string - #901

Merged
saundefined merged 1 commit into
php:masterfrom
localheinz:fix/null
Feb 12, 2024
Merged

Fix: Do not pass null to function that expects string#901
saundefined merged 1 commit into
php:masterfrom
localheinz:fix/null

Conversation

@localheinz

@localheinzlocalheinz commented Dec 15, 2023

Copy link
Copy Markdown
Contributor

This pull request

  • stops passing null to a function that expects string

Spotted in #900.

💁‍♂️ In the first iteration of the inner foreach-loop, $version is null:

$version = null;
$current = null;
foreach ($RELEASESas$versions) {
foreach ($versionsas$ver => $info) {
if (version_compare($ver, $version) > 0) {

@github-actions

Copy link
Copy Markdown
Contributor

@saundefinedsaundefined 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.

Thanks!

@saundefined
saundefined merged commit 026b509 into php:masterFeb 12, 2024
@localheinz
localheinz deleted the fix/null branch February 12, 2024 17:18
@localheinz

Copy link
Copy Markdown
ContributorAuthor

Thank you, @saundefined!

Sign up for freeto 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

@localheinz@saundefined