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

Could not get class storage for stdClass #1016

Closed
mxr576 opened this issue Oct 11, 2018 · 2 comments
Closed

Could not get class storage for stdClass #1016

mxr576 opened this issue Oct 11, 2018 · 2 comments
Labels

Comments

@mxr576
Copy link

mxr576 commented Oct 11, 2018

After upgraded to 2.0.14 from 2.0.13 I keep getting this error.

> psalm --config=psalm.xml.dist --show-info=false --stats
Scanning files...
Analyzing files...
[11-Oct-2018 09:03:56 Europe/Budapest] PHP Fatal error:  Uncaught InvalidArgumentException: Could not get class storage for stdClass in /var/www/html/vendor/vimeo/psalm/src/Psalm/Provider/ClassLikeStorageProvider.php:35

https://travis-ci.org/mxr576/apigee-client-php/jobs/439992829#L814

mxr576 added a commit to mxr576/apigee-client-php that referenced this issue Oct 11, 2018
@muglug muglug added the bug label Oct 11, 2018
@muglug muglug closed this as completed in 03ed1a5 Oct 11, 2018
@muglug
Copy link
Collaborator

muglug commented Oct 11, 2018

Sorry about this - I wanted to eliminate any unnecessary rescanning happening in the analysis phase, and this was a casualty of that. The fix makes sure to add stdClass to the set of classes Psalm knows about in the scanning step.

@mxr576
Copy link
Author

mxr576 commented Oct 12, 2018

Thanks for the quick fix!

mxr576 added a commit to mxr576/apigee-client-php that referenced this issue Nov 5, 2018
mxr576 added a commit to apigee/apigee-client-php that referenced this issue Nov 6, 2018
Highlights:

* Block installation of the latest vimeo/psalm.

vimeo/psalm#1016

* Introducing new API and HTTP clients for testing.

* Updated Management API tests to use the new test API- and HTTP clients.

* Explode entity CRUD operation trait and interface to smaller components
per operation.

* Added missing organization property to Company entity.

* Added more details about the actual behavior of the Company membership API.

* Introducing new base class and interface for developer- and company
entity.

* Refactored basic and Management API tests.

* Bump minimum version of php-http/client-common to >=1.8.1.

1.8.0 contains a regression bug:
php-http/client-common#112

* Add new required patch to php-http/client-common.

php-http/client-common#113

* Disable process timeout to prevent failing test runs caused by
PHPUnit executed via a Composer command.

* Removed useless PHP nightly builds from testing matrix.

* Added test to getDeveloperByApp.

* Introducing new base exception interface for our client.

* Introducing API client specific RuntimeException class.

* Throw more meaningful exceptions when an entity property has an
incorrect value.

* Be more type-strict by replacing array arguments on data object's
setters with type strict variable-length arguments.

* Fix implementation of getProperties(). (BC breaking change.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants