File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
app/code/Magento/Csp/Plugin Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ public function __construct(
6767 */
6868 public function afterCreateRequireJsConfigAsset (
6969 FileManager $ subject ,
70- File $ result
71- ): File {
70+ mixed $ result
71+ ): mixed {
7272 if (PHP_SAPI == 'cli ' ) {
7373 if (in_array ($ result ->getContentType (), self ::CONTENT_TYPES )) {
7474 $ integrity = $ this ->integrityFactory ->create (
@@ -116,14 +116,14 @@ public function afterCreateRequireJsMixinsAsset(
116116 * @param FileManager $subject
117117 * @param File|false $result
118118 *
119- * @return File
119+ * @return File|false
120120 *
121121 * @SuppressWarnings(PHPMD.UnusedFormalParameter)
122122 */
123123 public function afterCreateStaticJsAsset (
124124 FileManager $ subject ,
125- File | false $ result
126- ): File {
125+ $ result
126+ ): false | File {
127127 if ($ result !== false && PHP_SAPI === 'cli ' ) {
128128 $ this ->generateHash ($ result );
129129 }
You can’t perform that action at this time.
0 commit comments