File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,10 @@ public function get_min_file( string $type ): string {
133133
134134 $ assets = $ this ->get_assets_json_index_file ();
135135
136+ if ( empty ( $ assets ) ) {
137+ return '' ;
138+ }
139+
136140 switch ( $ type ) {
137141 case 'css ' :
138142 $ file = $ assets ['app.css ' ] ?? '' ;
Original file line number Diff line number Diff line change 88
99class Theme implements Service {
1010
11+ /**
12+ * @var Service|bool
13+ */
1114 protected $ asset ;
1215
1316 /**
@@ -89,12 +92,9 @@ private function i18n(): void {
8992 /**
9093 * Set default path for ARI for minified files
9194 *
92- * @param string $attr
93- *
9495 * @return string
95- *
9696 */
97- public function set_ari_responsive_image_default_img_path ( string $ attr ): string {
97+ public function set_ari_responsive_image_default_img_path (): string {
9898 return '/dist/ ' ;
9999 }
100100
You can’t perform that action at this time.
0 commit comments