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 message about deprecated in build-stage #6311

Merged
merged 1 commit into from Jan 5, 2022

Conversation

barmax
Copy link

@barmax barmax commented Jan 3, 2022

Hi!

When you build suites in PHP 8.1, you have a message:

vendor/bin/codecept build
Building Actor classes for suites: acceptance, functional, unit
 -> AcceptanceTesterActions.php generated successfully. 71 methods added

Deprecated: file_put_contents(): Passing null to parameter #3 ($flags) of type int is deprecated in /var/www/core/vendor/codeception/codeception/src/Codeception/Command/Shared/FileSystem.php on line 51

This pull request fixed it. I changed the default value of flags in the method 'FileSystem::createFile()'.

@Naktibalda Naktibalda merged commit 04033cd into Codeception:4.1 Jan 5, 2022
@barmax barmax deleted the deprecated-flag-type branch January 5, 2022 16:48
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.

None yet

3 participants