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

Catch static method calling but its not "Non-static method *** should not be called statically" #882

Closed
JarwisMaster opened this issue Sep 19, 2019 · 2 comments
Milestone

Comments

@JarwisMaster
Copy link

Small project with queue and laravel
composer:

        "php": ">=5.6.4",
        "aws/aws-sdk-php": "^3.36",
        "doctrine/common": "2.7.0",
        "doctrine/dbal": "^2.5.13",
        "guzzlehttp/psr7": "^1.5",
        "laravel/framework": "5.4.*",
        "laravel/tinker": "~1.0",
        "php-http/curl-client": "^1.7",
        "predis/predis": "^1.1",
        "quickbooks/v3-php-sdk": "^5.0",
        "sentry/sdk": "^2.0",
        "sentry/sentry-laravel": "^1.2"

Catch
ErrorException: Error: Uncaught ErrorException: Non-static method App\Services\Sage\SagePayment::createPayments() should not be called statically in /var/www/vendor/sentry/sentry/src/Serializer/AbstractSerializer.php:214
Stack trace:
#0 /var/www/vendor/sentry/sentry/src/Serializer/AbstractSerializer.php(214): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8192, 'Non-static meth...', '/var/www/vendor...', 214, Array)
getsentry/sentry#1 /var/www/vendor/sentry/sentry/src/Serializer/AbstractSerializer.php(106): Sentry\Serializer\AbstractSerializer->serializeCallable('App\Services\Sa...')
getsentry/sentry#2 /var/www/vendor/sentry/sentry/src/Serializer/AbstractSerializer.php(113): Sentry\Serializer\AbstractSerializer->serializeRecursively('App\Services\Sa...', 1)
getsentry/sentry#3 /var/www/vendor/sentry/sentry/src/Serializer/RepresentationSerializer.php(18): Sentry\Serializer\AbstractSerializer->serializeRecursively(Array)
getsentry/sentry#4 /var/www/vendor/sentry/sentry/src/Stacktrace.php(168): Sentry\Serializer\RepresentationSerializer->representationSerialize(A {clipped}
getsentry/sentry#1 vendor/sentry/sentry/src/Serializer/AbstractSerializer.php(214): Sentry\ErrorHandler::handleFatalError
#0 internal: null

But this method didn't calling static around all the project, fully searched;

@markstory markstory transferred this issue from getsentry/sentry Sep 19, 2019
@ste93cry
Copy link
Collaborator

This seems a duplicate of #821

@ste93cry
Copy link
Collaborator

Closing as this has been solved in the linked PR and the fix will be part of the next patch release

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

No branches or pull requests

3 participants