You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running on PHP 8.1, hits to API endpoints will emit a warning that says:
explode(): Passing null to parameter #2 ($string) of type string is deprecated in /var/www/html/vendor/apiato/core/Traits /ResponseTrait.php on line 90
originating from this line in parseRequestedIncludes function in ResponseTrait:
Due to Request::get('include') returning null and accepting null has been deprecated.
The same thing may happen to the function before it, since there's also a call to Request::get('filter') and then the return value gets exploded in the following line.
Seems easy to fix, such as by adding ?? '' to them, also maybe there are more places where Apiato calls explode on a possibly null/falsy value?
The text was updated successfully, but these errors were encountered:
When running on PHP 8.1, hits to API endpoints will emit a warning that says:
explode(): Passing null to parameter #2 ($string) of type string is deprecated in /var/www/html/vendor/apiato/core/Traits /ResponseTrait.php on line 90
originating from this line in
parseRequestedIncludes
function inResponseTrait
:core/Traits/ResponseTrait.php
Lines 88 to 91 in cbf2aca
Due to
Request::get('include')
returning null and accepting null has been deprecated.The same thing may happen to the function before it, since there's also a call to
Request::get('filter')
and then the return value gets exploded in the following line.Seems easy to fix, such as by adding
?? ''
to them, also maybe there are more places where Apiato calls explode on a possibly null/falsy value?The text was updated successfully, but these errors were encountered: