File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
app/code/Magento/Csp/Plugin Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -59,16 +59,16 @@ public function __construct(
5959 * Generates integrity for RequireJs config.
6060 *
6161 * @param FileManager $subject
62- * @param File|false $result
62+ * @param File $result
6363 *
64- * @return File|false
64+ * @return File
6565 *
6666 * @SuppressWarnings(PHPMD.UnusedFormalParameter)
6767 */
6868 public function afterCreateRequireJsConfigAsset (
6969 FileManager $ subject ,
70- mixed $ result
71- ): mixed {
70+ File $ result
71+ ): File {
7272 if (PHP_SAPI == 'cli ' ) {
7373 if (in_array ($ result ->getContentType (), self ::CONTENT_TYPES )) {
7474 $ integrity = $ this ->integrityFactory ->create (
@@ -122,8 +122,8 @@ public function afterCreateRequireJsMixinsAsset(
122122 */
123123 public function afterCreateStaticJsAsset (
124124 FileManager $ subject ,
125- $ result
126- ): false | File {
125+ mixed $ result
126+ ): mixed {
127127 if ($ result !== false && PHP_SAPI === 'cli ' ) {
128128 $ this ->generateHash ($ result );
129129 }
You can’t perform that action at this time.
0 commit comments