phpro / grumphp

A PHP code-quality tool
MIT License
4.11k stars 429 forks source link

The application requires the version "^7.2" or greater. #1128

Closed floriankraemer closed 3 months ago

floriankraemer commented 3 months ago
Q A
Version ?
Bug? yes
New feature? no
Question? no
Documentation? no
Related tickets -

I've installed grumphp via Phive and I think something is off with the version of something. The error message could be way more clear. The application requires the version "^7.2" or greater. - The version of WHAT exactly? PHP? grump?

PHP 8.3.4 (cli) (built: Mar 16 2024 08:39:49) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.4, Copyright (c) Zend Technologies
    with Xdebug v3.3.1, Copyright (c) 2002-2023, by Derick Rethans
    with Zend OPcache v8.3.4, Copyright (c), by Zend Technologies

Steps to reproduce:

phive install grumphp
tools/grumphp --version

Result:

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

> Using PHP 8.3.4
> PHP is using the following php.ini file:
  /etc/php/8.3/cli/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.2" or greater.
veewee commented 3 months ago

Hello,

What version of grumphp are you installing through phive? It seems to be a rather old one?

I just tried and it works as expected on PHP 8.3

Screenshot 2024-03-23 at 18 54 11 Screenshot 2024-03-23 at 18 54 20

floriankraemer commented 3 months ago

Oh, you are right. <phar name="grumphp" version="^0.19.1" installed="0.19.1" location="./tools/grumphp" copy="false"/> but why did it install such an old version? My assumption was that phive install phpgrump would install the latest version.

Sorry for the inconvenience!