Skip to content

Running psalm.phar with PHP 8.3 alpha 3 #10026

@thomas-0816

Description

@thomas-0816

Running psalm.phar 5.13.1 with PHP 8.3 alpha 3 gives:

Box Requirements Checker
========================

> Using PHP 8.3.0alpha3
> PHP is using the following php.ini file:
  /usr/local/etc/php/php.ini

> Checking Box requirements:
  E............

                                                                                                                                                                                                                                                                                                                            
 [ERROR] Your system is not ready to run the application.                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                                                            

Fix the following mandatory requirements:
=========================================

 * The application requires the version "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0" or greater.

The error is gone when I change psalm/composer.json and run "composer update && bin/build-phar.sh":

git diff composer.json
diff --git a/composer.json b/composer.json
index 7f4a9f9..7df7c97 100644
--- a/composer.json
+++ b/composer.json
@@ -15,7 +15,7 @@
         }
     ],
     "require": {
-        "php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0",
+        "php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
Target PHP version: 8.3 (inferred from current PHP version) Enabled extensions: pdo, redis (unsupported extensions: spl, pcre, zend-opcache).
Scanning files...
Analyzing files...

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 60 / 64 (93%)
░░░░
------------------------------
                              
       No errors found!       
                              
------------------------------

Checks took 4.94 seconds and used 106.860MB of memory
Psalm was able to infer types for 100% of the codebase

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