Skip to content

Errors when running on PHP 8.4 #344

@marinaglancy

Description

@marinaglancy

It looks like https://tracker.moodle.org/browse/MDL-80117 is close to being resolved, so I tried to run moodle-plugin-ci on my plugin with Moodle main branch (5.0) and PHP 8.4. I could not even execute moodle-plugin-ci install:

In MoodleProcess.php line 90:
                                                                               
  PHP error message was detected when running this command:                    
    '/usr/bin/php8.4' '-d' 'log_errors=1' '-d' 'error_log=null' '/home/runner  
  /work/moodle-tool_vault/moodle-tool_vault/moodle/admin/tool/phpunit/cli/uti  
  l.php' '--install'                                                           
  Moodle scripts should run without any PHP errors.                            
                                                                               
  Error Output                                                                 
  ============                                                                 
  PHP Deprecated:  Constant E_STRICT is deprecated in /home/runner/work/moodl  
  e-tool_vault/moodle-tool_vault/moodle/config.php on line 25                  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions