Skip to content

Commit

Permalink
Phpstan use
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Jan 23, 2024
1 parent e9f8cd6 commit 27d4196
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ release:
git commit -a -m "Release v$(nextversion)"
git tag -a $(nextversion) -m "version $(nextversion)"

phpstan:
phpstan analyse --error-format=checkstyle --level=4 src



openbuild:

Expand Down
2 changes: 1 addition & 1 deletion src/Ease/Atom.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Atom
*/
public function getObjectName()
{
return get_class();
return get_class($this);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Ease/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ public static function isSerialized(string $data): bool
*
* @param object $object
*
* @return string|null
* @return string|object|null
*/
public static function baseClassName($object)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Ease/Locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ class Locale
/**
* Current Used locale code
*
* @var string
* @var string|null
*/
public static $localeUsed = null;

/**
* i18n files location
*
* @var string dirpath
* @var string|null dirpath
*/
public static $i18n = null;

Expand Down

0 comments on commit 27d4196

Please sign in to comment.