Skip to content

Updated function definition causing 500 error #3

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

Closed
wants to merge 1 commit into from

Conversation

N3rdP1um23
Copy link

I had an issue with one of my projects where this file was causing laravel-opcache to throw a 500 error.

syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) {"url":"/opcache-api/compile","exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) at vendor/symfony/service-contracts/Attribute/SubscribedService.php:30)

After removing public from the function definition, everything worked as expected.

This is to correct the following issue - symfony/symfony#44924

I had an issue with one of my projects where this file was causing [laravel-opcache](https://github.com/appstract/laravel-opcache) to throw a 500 error.

> syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) {"url":"/opcache-api/compile","exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) at vendor/symfony/service-contracts/Attribute/SubscribedService.php:30)

After removing public from the function definition, everything worked as expected.
@symfony-bot
Copy link

symfony-bot bot commented Jan 5, 2022

Thanks for your pull request! We love contributions.

However, this repository is what we call a "subtree split": a read-only copy of one directory of the main Symfony contracts repository. It is used by Composer to allow developers to depend on specific Symfony contracts.

If you want to contribute, you should instead open a pull request on the main repository:

https://github.com/symfony/contracts

Thank you for your contribution!

PS: if you haven't already, please add tests, and beware that bug fixes should be submitted on the lowest maintained branch where they apply; only features should be submitted against the main branch.

@N3rdP1um23 N3rdP1um23 changed the title Updated function definition casing 500 error Updated function definition causing 500 error Jan 5, 2022
@N3rdP1um23
Copy link
Author

Closing PR as the issue thread has been closed - symfony/symfony#44924

@N3rdP1um23 N3rdP1um23 closed this Jan 7, 2022
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.

1 participant