Closed MaximGns closed 1 year ago
Edge case error discoverd
==> system.log <== [2023-05-24T14:07:41.690339+00:00] report.CRITICAL: TypeError: stristr(): Argument #1 ($haystack) must be of type string, null given in /app/#/vendor/yireo/magento2-linkpreload/Plugin/ResponsePlugin.php:104 Stack trace:
Thanks. A simple but needed fix! I'm going to merge this one right away, but also taking a look at some other issues before releasing. Thanks again!
Edge case error discoverd
==> system.log <== [2023-05-24T14:07:41.690339+00:00] report.CRITICAL: TypeError: stristr(): Argument #1 ($haystack) must be of type string, null given in /app/#/vendor/yireo/magento2-linkpreload/Plugin/ResponsePlugin.php:104 Stack trace:
0 /app/#/vendor/yireo/magento2-linkpreload/Plugin/ResponsePlugin.php(104): stristr(NULL, '<!doctype html>')
1 /app/#/vendor/yireo/magento2-linkpreload/Plugin/ResponsePlugin.php(71): Yireo\LinkPreload\Plugin\ResponsePlugin->shouldAddLinkHeader(Object(Magento\Framework\App\Response\Http\Interceptor))
2 /app/#/vendor/magento/framework/Interception/Interceptor.php(121): Yireo\LinkPreload\Plugin\ResponsePlugin->beforeSendResponse(Object(Magento\Framework\App\Response\Http\Interceptor))
3 /app/#/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Response\Http\Interceptor->Magento\Framework\Interception{closure}()
4 /app/#/generated/code/Magento/Framework/App/Response/Http/Interceptor.php(23): Magento\Framework\App\Response\Http\Interceptor->___callPlugins('sendResponse', Array, Array)
5 /app/#/vendor/magento/framework/App/Bootstrap.php(265): Magento\Framework\App\Response\Http\Interceptor->sendResponse()
6 /app/#/pub/index.php(30): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
7 {main} [] []