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

syntax error, unexpected token "readonly", expecting identifier #374

Closed
LeVadim opened this issue Feb 16, 2022 · 4 comments
Closed

syntax error, unexpected token "readonly", expecting identifier #374

LeVadim opened this issue Feb 16, 2022 · 4 comments
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@LeVadim
Copy link

LeVadim commented Feb 16, 2022

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Please run down the following list and make sure you've tried the usual "quick fixes":

If you are still having issues, please be sure to include as much information as possible:

Environment details

Steps to reproduce

ParseError {#2663
#message: "syntax error, unexpected token "readonly", expecting identifier"
#code: 0
#file: "./vendor/google/cloud-spanner/src/V1/TransactionOptions/ReadOnly.php"
#line: 16
trace: {
./vendor/google/cloud-spanner/src/V1/TransactionOptions/ReadOnly.php:16 { …}
./vendor/composer/ClassLoader.php:428 { …}
./vendor/google/gax/src/Serializer.php:363 { …}
./vendor/google/gax/src/Serializer.php:416 { …}
./vendor/google/gax/src/Serializer.php:368 { …}
./vendor/google/gax/src/Serializer.php:416 { …}
./vendor/google/gax/src/Serializer.php:126 { …}
./vendor/google/cloud-spanner/src/Connection/Grpc.php:1192 { …}
./vendor/google/cloud-spanner/src/Connection/Grpc.php:790 { …}
./vendor/google/cloud-spanner/src/Operation.php:234 { …}
./vendor/google/cloud-spanner/src/Result.php:190 { …}
Google\Cloud\Spanner\Result->Google\Cloud\Spanner{closure}() {}
./vendor/google/cloud-core/src/ExponentialBackoff.php:80 { …}
./vendor/google/cloud-spanner/src/Result.php:192 { …}
Google\Cloud\Spanner\Result->rows() {}
./vendor/colopl/laravel-spanner/src/Colopl/Spanner/Connection.php:246 { …}
./vendor/colopl/laravel-spanner/src/Colopl/Spanner/Connection.php:428 { …}
./vendor/laravel/framework/src/Illuminate/Database/Connection.php:672 { …}
./vendor/colopl/laravel-spanner/src/Colopl/Spanner/Connection.php:247 { …}
./vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2484 { …}
./vendor/colopl/laravel-spanner/src/Colopl/Spanner/Query/Builder.php:177 { …}
./vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2472 { …}
./vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:3006 { …}
./vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:2473 { …}
./app/Console/Commands/Test.php:56 {
App\Console\Commands\Test->handle()
› ->orderBy('id')
› ->get();
}
./vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36 { …}
./vendor/laravel/framework/src/Illuminate/Container/Util.php:41 { …}
./vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93 { …}
./vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37 { …}
./vendor/laravel/framework/src/Illuminate/Container/Container.php:653 { …}
./vendor/laravel/framework/src/Illuminate/Console/Command.php:136 { …}
./vendor/symfony/console/Command/Command.php:307 { …}
./vendor/laravel/framework/src/Illuminate/Console/Command.php:121 { …}
./vendor/symfony/console/Application.php:989 { …}
./vendor/symfony/console/Application.php:299 { …}
./vendor/symfony/console/Application.php:171 { …}
./vendor/laravel/framework/src/Illuminate/Console/Application.php:102 { …}
./vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:129 { …}
./artisan:37 { …}
}
}

Code example

# example

Regular DB query

Hello!

I am receiving the following error. Could it be because in PHP 8.1 we cannot use ReadOnly as class name? I have seen that renaming class name helped, for example - schmittjoh/serializer#1331 .

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!

@hkdevandla
Copy link
Member

@noahdietz , can you please triage this? Thanks!

@noahdietz noahdietz assigned bshaffer and unassigned noahdietz Feb 23, 2022
@noahdietz
Copy link
Contributor

@bshaffer could you take a look please?

@noahdietz noahdietz added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. and removed 🚨 This issue needs some love. triage me I really want to be triaged. labels Feb 23, 2022
@noahdietz
Copy link
Contributor

After speaking with the team, this is a known issue and it will be fixed as soon as we can get to it. A little bogged down at the moment.

@bshaffer
Copy link
Contributor

Closing as this is a duplicate of googleapis/google-cloud-php#5129 and is not an error in GAX

This should be fixed this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

5 participants