Problem/Motivation

Documents, tests and twig function need to be refactored

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork htmx-3566633

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

fathershawn created an issue. See original summary.

fathershawn’s picture

Title: Refactor documentation for 2.x » Refactor for 2.x
Issue summary: View changes

fathershawn’s picture

 ------ ---------------------------------------------------------------------- 
  Line   htmx.module                                                           
 ------ ---------------------------------------------------------------------- 
  24     Instantiated class Drupal\htmx\Template\HtmxAttribute not found.      
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  25     Call to method get() on an unknown class                              
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  31     Call to method toArray() on an unknown class                          
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  95     Instantiated class Drupal\htmx\Template\HtmxAttribute not found.      
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  96     Call to method get() on an unknown class                              
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  112    Instantiated class Drupal\htmx\Template\HtmxAttribute not found.      
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  113    Call to method get() on an unknown class                              
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
 ------ ---------------------------------------------------------------------- 
 ------ ---------------------------------------------------------------------- 
  Line   src/Controller/HtmxBlockAdminController.php                           
 ------ ---------------------------------------------------------------------- 
  81     Instantiated class Drupal\htmx\Template\HtmxAttribute not found.      
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  82     Call to method get() on an unknown class                              
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  86     Call to method toArray() on an unknown class                          
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  115    Instantiated class Drupal\htmx\Template\HtmxAttribute not found.      
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  116    Call to method on() on an unknown class                               
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  144    Instantiated class Drupal\htmx\Template\HtmxAttribute not found.      
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  145    Call to method on() on an unknown class                               
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  173    Instantiated class Drupal\htmx\Template\HtmxAttribute not found.      
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  174    Call to method on() on an unknown class                               
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  202    Instantiated class Drupal\htmx\Template\HtmxAttribute not found.      
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  203    Call to method on() on an unknown class                               
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  244    Instantiated class Drupal\htmx\Template\HtmxAttribute not found.      
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  248    Call to method get() on an unknown class                              
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  268    Instantiated class Drupal\htmx\Template\HtmxAttribute not found.      
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  278    Call to method on() on an unknown class                               
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
 ------ ---------------------------------------------------------------------- 
 ------ ---------------------------------------------------------------------- 
  Line   src/Entity/HtmxBlockListBuilder.php                                   
 ------ ---------------------------------------------------------------------- 
  46     Instantiated class Drupal\htmx\Template\HtmxAttribute not found.      
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  57     Call to method get() on an unknown class                              
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  114    Instantiated class Drupal\htmx\Template\HtmxAttribute not found.      
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  115    Call to method boost() on an unknown class                            
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  119    Call to method toArray() on an unknown class                          
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  133    Instantiated class Drupal\htmx\Template\HtmxAttribute not found.      
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  134    Call to method select() on an unknown class                           
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  143    Call to method toArray() on an unknown class                          
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  151    Call to method toArray() on an unknown class                          
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
 ------ ---------------------------------------------------------------------- 
 ------ ---------------------------------------------------------------------- 
  Line   src/Form/HtmxBlockDeleteForm.php                                      
 ------ ---------------------------------------------------------------------- 
  31     Instantiated class Drupal\htmx\Template\HtmxAttribute not found.      
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  32     Call to method post() on an unknown class                             
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  37     Call to method toArray() on an unknown class                          
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
 ------ ---------------------------------------------------------------------- 
 ------ ---------------------------------------------------------------------- 
  Line   src/Form/HtmxBlockForm.php                                            
 ------ ---------------------------------------------------------------------- 
  251    Instantiated class Drupal\htmx\Template\HtmxAttribute not found.      
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  252    Call to method select() on an unknown class                           
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  259    Call to method post() on an unknown class                             
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  260    Call to method toArray() on an unknown class                          
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  262    Instantiated class Drupal\htmx\Template\HtmxAttribute not found.      
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  263    Call to method post() on an unknown class                             
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  275    Call to method toArray() on an unknown class                          
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  282    Call to method post() on an unknown class                             
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  283    Call to method toArray() on an unknown class                          
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  286    Instantiated class Drupal\htmx\Template\HtmxAttribute not found.      
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  287    Call to method select() on an unknown class                           
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  292    Call to method toArray() on an unknown class                          
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
 ------ ---------------------------------------------------------------------- 
 ------ ---------------------------------------------------------------------- 
  Line   src/Plugin/Block/HtmxLoaderBlock.php                                  
 ------ ---------------------------------------------------------------------- 
  189    Instantiated class Drupal\htmx\Template\HtmxAttribute not found.      
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  190    Call to method get() on an unknown class                              
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
  197    Call to method toArray() on an unknown class                          
         Drupal\htmx\Template\HtmxAttribute.                                   
         🪪  class.notFound                                                    
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols  
 ------ ---------------------------------------------------------------------- 
 ------ ----------------------------------------------------------------------- 
  Line   tests/modules/htmx_test_attachments/src/Controller/HtmxTestAttachment  
         sController.php                                                        
 ------ ----------------------------------------------------------------------- 
  23     Instantiated class Drupal\htmx\Template\HtmxAttribute not found.       
         🪪  class.notFound                                                     
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols   
  24     Call to method get() on an unknown class                               
         Drupal\htmx\Template\HtmxAttribute.                                    
         🪪  class.notFound                                                     
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols   
  52     Instantiated class Drupal\htmx\Template\HtmxAttribute not found.       
         🪪  class.notFound                                                     
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols   
  53     Call to method get() on an unknown class                               
         Drupal\htmx\Template\HtmxAttribute.                                    
         🪪  class.notFound                                                     
         💡  Learn more at https://phpstan.org/user-guide/discovering-symbols   
 ------ ----------------------------------------------------------------------- 
 ------ ----------------------------------------------------------------- 
  Line   tests/src/Nightwatch/HtmxViewsTestSetup.php                      
 ------ ----------------------------------------------------------------- 
  54     Call to deprecated function node_add_body_field():               
         in drupal:11.3.0 and is removed from drupal:12.0.0. There is no  
         replacement.                                                     
         🪪  function.deprecated                                          
 ------ ----------------------------------------------------------------- 

fathershawn’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

fathershawn’s picture

Status: Fixed » Closed (fixed)