فهرست منبع

added the actual phpversion into the error message when phpversion doesn satisfy the requirement

Markus Staab 10 سال پیش
والد
کامیت
c9bdf3a07a
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      src/Composer/DependencyResolver/Problem.php
  2. 1 1
      src/Composer/DependencyResolver/Rule.php

+ 1 - 1
src/Composer/DependencyResolver/Problem.php

@@ -97,7 +97,7 @@ class Problem
                         return $msg . 'you are running this with PHP and not HHVM.';
                     }
 
-                    return $msg . 'your PHP version does not satisfy that requirement.';
+                    return $msg . 'your PHP version ('.  phpversion().') does not satisfy that requirement.';
                 }
 
                 // handle php extensions

+ 1 - 1
src/Composer/DependencyResolver/Rule.php

@@ -223,7 +223,7 @@ class Rule
                         } elseif ($targetName === 'hhvm') {
                             $text .= ' -> you are running this with PHP and not HHVM.';
                         } else {
-                            $text .= ' -> your PHP version does not satisfy that requirement.';
+                            $text .= ' -> your PHP version ('.  phpversion().') does not satisfy that requirement.';
                         }
                     } elseif (0 === strpos($targetName, 'ext-')) {
                         $ext = substr($targetName, 4);