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 Stop using deprecated API #457

Merged

Conversation

GuySartorelli
Copy link
Collaborator

There are two commits here - feel free to squash if you want but can be left separate.

Issue

@@ -2,7 +2,6 @@

namespace Symbiote\QueuedJobs\Jobs;

use SilverStripe\Dev\Deprecation;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not used

Comment on lines -28 to +30
// Don't throw E_DEPRECATED in PHP 5.3+
if (defined('E_DEPRECATED')) {
if ($errno == E_DEPRECATED || $errno == E_USER_DEPRECATED) {
return;
}
}

switch ($errno) {
case E_DEPRECATED:
case E_USER_DEPRECATED:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not really related but noticed it and seemed sensible to update this while I'm here, since E_DEPRECATED will always be defined in supported PHP versions now.

@emteknetnz emteknetnz merged commit a081e08 into symbiote:6.0 Jan 7, 2025
8 checks passed
@emteknetnz emteknetnz deleted the pulls/6.0/remove-deprecated branch January 7, 2025 04:15
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