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

set-version.php - Fix warning on PHP 8.1 #25786

Merged
merged 1 commit into from
Mar 12, 2023

Conversation

totten
Copy link
Member

@totten totten commented Mar 11, 2023

Overview

The $sqlFile may or may not be needed, which was producing a warning for operations like:

 ./tools/bin/scripts/set-version.php 5.59.2 --commit

Before

Deprecated: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in
/.../tools/bin/scripts/set-version.php on line 105

After

The sound of silence.

The `$sqlFile` may or may not be needed, which produces a warning:

```
Deprecated: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in
/.../tools/bin/scripts/set-version.php on line 105
```
@civibot civibot bot added the master label Mar 11, 2023
@civibot
Copy link

civibot bot commented Mar 11, 2023

(Standard links)

@seamuslee001
Copy link
Contributor

Jenkins re test this please

@eileenmcnaughton eileenmcnaughton merged commit 507ff75 into civicrm:master Mar 12, 2023
@totten totten deleted the master-setver-warning branch March 15, 2023 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants