-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
Description
Issue description
As the title implies the current implementation of the Assets class incorrectly defines a Query() method which collides with the parent classes query($_query = array()) method.
Here is the main text of the exception this throws:
ContextErrorExceptionWarning: Declaration of Contentstack\Stack\Assets\Assets::Query() should be compatible with Contentstack\Stack\ContentType\BaseQuery\BaseQuery::query($_query = Array)
Steps to reproduce the issue
- Setup the PHP demo app - using the PR submitted there: Fix PHP demo for current CS PHP SDK contentstack-symfony-php-blog-demo#1
- Add the current PHP SDK.
- Insert your Stack ID and Key.
- Run the symphony server and load the page.
What's the expected result?
That the library will load without exceptions.
What's the actual result?
The library loads with exceptions. Potentially this is specific to the version of PHP being used - it's possible that older PHP versions didn't throw and Exception here.

