Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-1158

Update CI to run psalm & phpcs on PHP 8.2+

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.16.0
    • Affects Version/s: None
    • Component/s: Tests
    • None

      The PHPC types varies with the PHP version (example in MongoDB\Manager::executeBulkWrite()). This have an impact on the static analysis tools: psalm errors are different on PHP 7.4 and PHP 8.2

      Benefits:

      • Use more detailed types for better static analysis
      • Allows to fix errors and update psalm-baseline using PHP 8+ (installing PHP 7.4 + compiling ext-mongodb on Mac M1 is not straightforward.

      In GitHub, jobs blocking for merging will have to be updated.

       

      The job can run on ubuntu 20.04 or be updated to 22.04, both support PHP 8.1.

      https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md#php-tools

       

            Assignee:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Reporter:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: