phpstan support (#250)

* phpstan v1 + workflow

* Fix intend

* More fixes

* Update phpstan.neon

* phpstan level 2

* Move errors ignoring into phpstan.neon

* phpstan level 3

* Don't ignore templates folder

* Something from level 4

* Update phpstan.neon
This commit is contained in:
Slawomir Boczek
2024-02-18 14:59:25 +01:00
committed by GitHub
parent e23a749e4c
commit fe7ad61abe
21 changed files with 157 additions and 22 deletions

View File

@@ -4,6 +4,14 @@ namespace MyAAC\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @property int $id
* @property int $type
* @property int $where
* @property string $body
* @property int $player_id
* @property int $date
*/
class Changelog extends Model {
protected $table = TABLE_PREFIX . 'changelog';

View File

@@ -3,6 +3,13 @@
namespace MyAAC\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @property int $id
* @property string $name
* @property string $title
* @property int $php
* @property int $hide
*/
class Pages extends Model {
protected $table = TABLE_PREFIX . 'pages';

View File

@@ -3,6 +3,11 @@
namespace MyAAC\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @property string $name
* @property string $key
* @property string $value
*/
class Settings extends Model {
protected $table = TABLE_PREFIX . 'settings';