When calling Photo::all in PHP 8.1, it's triggering a tonne of deprecation warnings when adding utm query parameters to links returned in the images that resolve to null:
<b>Deprecated</b>: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in
<b>/app/api/vendor/unsplash/unsplash/src/Endpoint.php</b> on line <b>185</b><br />
<br />
<b>Deprecated</b>: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in
<b>/app/api/vendor/unsplash/unsplash/src/Endpoint.php</b> on line <b>185</b><br />
<br />
<b>Deprecated</b>: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in
<b>/app/api/vendor/unsplash/unsplash/src/Endpoint.php</b> on line <b>185</b><br />
<br />
<b>Deprecated</b>: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in
<b>/app/api/vendor/unsplash/unsplash/src/Endpoint.php</b> on line <b>185</b><br />
<br />
...
When calling
Photo::all
in PHP 8.1, it's triggering a tonne of deprecation warnings when addingutm
query parameters to links returned in the images that resolve tonull
: