Skip to content

Commit

Permalink
added symfony var_dumper in order to make sure Dump test passes
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymframework committed Apr 13, 2019
1 parent a1bd588 commit fae1fb9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"php-coveralls/php-coveralls": "^2.1",
"mockery/mockery": "~1.0",
"codedungeon/phpunit-result-printer": "^0.14.0",
"php-mock/php-mock": "^2.0"
"php-mock/php-mock": "^2.0",
"symfony/var-dumper": "^4.2"
},
"autoload": {
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/Helpers/Dump.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Symfony\Component\VarDumper\Dumper\HtmlDumper;
use Symfony\Component\VarDumper\Cloner\VarCloner;

class Dump
final class Dump
{

/**
Expand Down
4 changes: 3 additions & 1 deletion src/Helpers/FW.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ public static function current(): string
*
* @return string
*/
public static function version(string $expression = self::VERSION_WITHOUT_BUG_FIX): string
public static function version(string $expression = null): string
{
$expression = $expression ?? self::VERSION_WITHOUT_BUG_FIX;

if (static::is(static::LARAVEL)) {
return static::extractVersion(constant('Illuminate\Foundation\Application::VERSION'), $expression);
}
Expand Down

0 comments on commit fae1fb9

Please sign in to comment.