Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Analysis results of cipherdevgroup/alpha on PHPStan Level 4
------ -----------------------------------
Line hooks-template.php
------ -----------------------------------
11 Right side of || is always false.
------ -----------------------------------
------ -----------------------------------
Line hooks.php
------ -----------------------------------
11 Right side of || is always false.
------ -----------------------------------
------ --------------------------------------
Line template-global.php
------ --------------------------------------
156 Function yoast_breadcrumb not found.
------ --------------------------------------
------ -----------------------------------
Line vendor/carelib/admin/actions.php
------ -----------------------------------
11 Right side of || is always false.
------ -----------------------------------
------ ---------------------------------------------------------------------------------------------------------------------------------
Line vendor/carelib/admin/layouts.php
------ ---------------------------------------------------------------------------------------------------------------------------------
20 Parameter $layout of function carelib_layout_has_meta_box() has invalid typehint type CareLib_Layout.
21 Access to offset 'image' on an unknown class CareLib_Layout.
41 Parameter $layout of function carelib_layout_has_post_metabox() has invalid typehint type CareLib_Layout.
42 Access to offset 'is_post_layout' on an unknown class CareLib_Layout.
96 Default value of the parameter #1 $post_id ('') of function _carelib_is_post_layout_forced() is incompatible with type int.
120 Default value of the parameter #1 $post_id ('') of function _carelib_is_template_layout_forced() is incompatible with type int.
------ ---------------------------------------------------------------------------------------------------------------------------------
------ --------------------------------------------------------------------------------------------------------------------------------
Line vendor/carelib/admin/metabox-post-layouts.php
------ --------------------------------------------------------------------------------------------------------------------------------
96 Default value of the parameter #2 $post ('') of function carelib_metabox_post_layouts_save() is incompatible with type object.
102 Function carelib_metabox_post_layouts_save() should return int|void but returns false.
109 Function carelib_metabox_post_layouts_save() should return int|void but returns false.
113 Function carelib_metabox_post_layouts_save() should return int|void but returns bool.
116 Function carelib_metabox_post_layouts_save() should return int|void but returns bool.
------ --------------------------------------------------------------------------------------------------------------------------------
------ --------------------------------------------------
Line vendor/carelib/admin/templates/layout-select.php
------ --------------------------------------------------
12 Undefined variable: $current_layout
12 Undefined variable: $name
12 Undefined variable: $name
13 Undefined variable: $layout
14 Undefined variable: $layout
14 Undefined variable: $layout
------ --------------------------------------------------
------ ---------------------------------------------------------
Line vendor/carelib/admin/templates/metabox-post-layouts.php
------ ---------------------------------------------------------
21 Undefined variable: $current_layout
27 Undefined variable: $post
------ ---------------------------------------------------------
------ -------------------------------------------------------------------------------------------------------------------------
Line vendor/carelib/carelib.php
------ -------------------------------------------------------------------------------------------------------------------------
11 Right side of || is always false.
125 Function carelib_init not found while trying to analyse it - autoloading is probably not configured properly.
156 Function carelib_admin_init not found while trying to analyse it - autoloading is probably not configured properly.
188 Function carelib_customize_init not found while trying to analyse it - autoloading is probably not configured properly.
------ -------------------------------------------------------------------------------------------------------------------------
------ --------------------------------------
Line vendor/carelib/customize/actions.php
------ --------------------------------------
12 Right side of || is always false.
------ --------------------------------------
------ -------------------------------------
Line vendor/carelib/includes/actions.php
------ -------------------------------------
11 Right side of || is always false.
------ -------------------------------------
------ -------------------------------------
Line vendor/carelib/includes/filters.php
------ -------------------------------------
11 Right side of || is always false.
------ -------------------------------------
------ ----------------------------------------------------------------------------------
Line vendor/carelib/includes/image.php
------ ----------------------------------------------------------------------------------
65 Function carelib_get_image() should return array|string but returns false.
220 Function _carelib_image_get_raw() should return array but returns false.
429 Function _carelib_image_format_image() should return string but returns false.
570 Strict comparison using === between false and int will always evaluate to false.
588 Function esc_attr invoked with 2 parameters, 1 required.
------ ----------------------------------------------------------------------------------
------ ----------------------------------------------------------------------------------------------------------------------
Line vendor/carelib/includes/layouts.php
------ ----------------------------------------------------------------------------------------------------------------------
49 Function carelib_get_layouts() should return object but returns array.
317 Parameter $layout of function carelib_post_type_has_layout() has invalid typehint type CareLib_Layout.
318 Access to offset 'post_types' on an unknown class CareLib_Layout.
336 Default value of the parameter #2 $post_id ('') of function carelib_has_post_layout() is incompatible with type int.
343 Strict comparison using === between bool and string will always evaluate to false.
359 Default value of the parameter #2 $user_id ('') of function carelib_has_user_layout() is incompatible with type int.
366 Strict comparison using === between bool and string will always evaluate to false.
------ ----------------------------------------------------------------------------------------------------------------------
------ --------------------------------------------------------------------------------
Line vendor/carelib/includes/plugins.php
------ --------------------------------------------------------------------------------
22 Call to static method is_builder_enabled() on an unknown class FLBuilderModel.
------ --------------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------------------------------------------------
Line vendor/carelib/includes/template-404.php
------ -----------------------------------------------------------------------------------------------------------------------------
19 Default value of the parameter #1 $text (false) of function carelib_get_404_entry_title() is incompatible with type string.
38 Default value of the parameter #1 $text (false) of function carelib_404_entry_title() is incompatible with type string.
------ -----------------------------------------------------------------------------------------------------------------------------
------ ------------------------------------------------------------------------------------------------
Line vendor/carelib/includes/template-archive.php
------ ------------------------------------------------------------------------------------------------
253 Function carelib_get_posts_navigation() should return string but empty return statement found.
------ ------------------------------------------------------------------------------------------------
------ ---------------------------------------------------------------------------------
Line vendor/carelib/includes/template-attachment.php
------ ---------------------------------------------------------------------------------
20 Function carelib_get_attachment_image() should return string but returns false.
------ ---------------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------------------
Line vendor/carelib/includes/template-entry.php
------ -----------------------------------------------------------------------------------------------
93 Function carelib_get_entry_title() should return string but returns false.
147 Function carelib_get_entry_published() should return string but returns false.
219 Function carelib_get_entry_comments_link() should return string but returns false.
295 Function carelib_get_entry_author() should return string but returns false.
531 Function carelib_get_entry_terms() should return string but returns false.
543 Function carelib_get_entry_terms() should return string but returns false.
606 Function carelib_get_post_navigation() should return string but empty return statement found.
630 Function carelib_get_post_navigation() should return string but returns false.
645 Function carelib_get_post_navigation() should return string but returns false.
672 Function carelib_get_post_navigation() should return string but returns false.
------ -----------------------------------------------------------------------------------------------
------ ---------------------------------------------------------------------------------
Line vendor/carelib/includes/template-global.php
------ ---------------------------------------------------------------------------------
35 Function carelib_get_site_title() should return string but returns false.
89 Function carelib_get_site_description() should return string but returns false.
142 Function carelib_get_skip_link() should return string but returns false.
------ ---------------------------------------------------------------------------------
------ -------------------------------------------------------------------------
Line vendor/carelib/includes/template-load.php
------ -------------------------------------------------------------------------
24 Function carelib_index_include() should return string but returns void.
24 Result of function carelib_framework (void) is used.
64 Variable $s in isset() is never defined.
------ -------------------------------------------------------------------------
------ -----------------------------------------------------------------
Line woocommerce/hooks.php
------ -----------------------------------------------------------------
11 Right side of || is always false.
59 Function remove_action invoked with 4 parameters, 2-3 required.
------ -----------------------------------------------------------------
------ ---------------------------------
Line woocommerce/template-global.php
------ ---------------------------------
66 Function is_cart not found.
------ ---------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.