1 | <?php |
||||||
2 | |||||||
3 | use ACFComposer\ACFComposer; |
||||||
4 | use Flynt\Components; |
||||||
0 ignored issues
–
show
|
|||||||
5 | |||||||
6 | add_action('Flynt/afterRegisterComponents', function () { |
||||||
7 | ACFComposer::registerFieldGroup([ |
||||||
8 | 'name' => 'postComponents', |
||||||
9 | 'title' => 'Post Components', |
||||||
10 | 'style' => 'seamless', |
||||||
11 | 'fields' => [ |
||||||
12 | [ |
||||||
13 | 'name' => 'postComponents', |
||||||
14 | 'label' => __('Post Components', 'flynt'), |
||||||
15 | 'type' => 'flexible_content', |
||||||
16 | 'button_label' => __('Add Component', 'flynt'), |
||||||
17 | 'layouts' => [ |
||||||
18 | Components\BlockCollapse\getACFLayout(), |
||||||
0 ignored issues
–
show
The function
getACFLayout was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
19 | Components\BlockImage\getACFLayout(), |
||||||
20 | Components\BlockImageText\getACFLayout(), |
||||||
21 | Components\BlockVideoOembed\getACFLayout(), |
||||||
22 | Components\BlockWysiwyg\getACFLayout(), |
||||||
23 | Components\SliderImages\getACFLayout(), |
||||||
24 | ], |
||||||
25 | ], |
||||||
26 | ], |
||||||
27 | 'location' => [ |
||||||
28 | [ |
||||||
29 | [ |
||||||
30 | 'param' => 'post_type', |
||||||
31 | 'operator' => '==', |
||||||
32 | 'value' => 'post', |
||||||
33 | ], |
||||||
34 | ], |
||||||
35 | ], |
||||||
36 | ]); |
||||||
37 | }); |
||||||
38 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths