Skip to content

Commit

Permalink
chore: add property annotations to models
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Jan 2, 2025
1 parent 5f2a3f0 commit aad2d7a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
php: [ '8.2', '8.3' ]
uses: tastyigniter/workflows/.github/workflows/php-tests.yml@main
uses: tastyigniter/workflows/.github/workflows/php-tests-lite.yml@main
with:
php-version: ${{ matrix.target }}
composer: update --no-interaction --no-progress
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"laravel/pint": "^1.2",
"larastan/larastan": "^2.4.0",
"sampoyigi/testbench": "dev-main as 1.0",
"pestphp/pest-plugin-laravel": "^2.0"
"pestphp/pest-plugin-laravel": "^3.0"
},
"autoload": {
"psr-4": {
Expand All @@ -41,7 +41,7 @@
}
},
"scripts": {
"test": "vendor/bin/pest",
"test": "vendor/bin/pest --coverage --exactly=100",
"test-coverage": "vendor/bin/pest --coverage",
"format": "vendor/bin/pint",
"static": "vendor/bin/phpstan analyse --ansi --memory-limit 1056M"
Expand Down
4 changes: 1 addition & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
<php>
<env name="APP_ENV" value="testing"/>
<env name="APP_KEY" value="base64:YzE5YjR2b3hrem1ucmdmc2Fkbm92NW1veHBkMWdpa3k="/>
<env name="DB_CONNECTION" value="mysql"/>
<env name="DB_DATABASE" value="testbench"/>
<env name="DB_USERNAME" value="forge"/>
<env name="DB_CONNECTION" value="sqlite"/>
</php>
<source>
<include>
Expand Down
7 changes: 7 additions & 0 deletions src/Models/Attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@

/**
* Attribute Model
*
* @property int $id
* @property string $locale
* @property string|null $translatable_id
* @property string|null $translatable_type
* @property string|null $attribute
* @mixin \Igniter\Flame\Database\Model
*/
class Attribute extends Model
{
Expand Down

0 comments on commit aad2d7a

Please sign in to comment.