Markus Podar and Barry vd. Heuvel
49ac75d805
Remove --smart-reset completely ( #1525 )
...
* Remove `--smart-reset` completely
See https://github.com/barryvdh/laravel-ide-helper/pull/1523#issuecomment-1952313183
* Update CHANGELOG.md
---------
Co-authored-by: Barry vd. Heuvel <[email protected] >
2024-02-19 14:03:16 +01:00
Barry vd. Heuvel
02af2a278a
Merge reset/smart reset, don't set class ( #1523 )
...
* Merge reset/smart reset, don't set class
* Add changelog
2024-02-19 12:59:22 +01:00
Barry vd. Heuvel
d7ed749f3e
Use int/bool instead of longer variant ( #1524 )
...
* Use int/bool instead of longer variant
* Add changelog
* Update snapshots
2024-02-19 12:39:07 +01:00
Markus Podar
9af62e243d
Bump minimum PHP version to 8.1 & misc maintenance ( #1521 )
...
* Bump minimum PHP version to 8.1
Laravel 10 doesn't support 8.0 anyway
* Remove phpunit 9
* gha: remove unused matrix dimension
* gha: bump runner os
* tests: remove outdated version checks
2024-02-17 22:08:15 +01:00
05259b695d
Add support for Laravel 11 ( #1520 )
...
* update dependencies
* Implement new methods for `Authenticatable` contract
* Added Laravel 11 to CI test target
* normalize composer.json
* Remove obsolete migration method (column type) from test
* Update snapshots
* Add changelog entry
* Update readme
---------
Co-authored-by: 武田 憲太郎 <[email protected] >
Co-authored-by: barryvdh <[email protected] >
2024-02-17 11:32:56 +01:00
Barry vd. Heuvel
8bfe918f65
Update CHANGELOG.md
2024-02-17 11:27:21 +01:00
6579c0332b
Remove doctrine ( #1512 )
...
* Remove doctrine
* Fix tests
* normalize composer.json
* Add back platform
* Bump integration versions
* composer fix-style
* Fix stability
* Bump minimum to 10.36
* Bump minimum to 10.38
* More types
* Fast fail off
* Bump docblock
* composer fix-style
* add bpchar
* Use match for type detection
Co-authored-by: Hafez Divandari <[email protected] >
* Use driverName
Co-authored-by: Hafez Divandari <[email protected] >
* fix match
* TWeak types
* Update snapshots
* Remove testbench 7
* composer fix-style
* Update src/Console/ModelsCommand.php
Co-authored-by: Hafez Divandari <[email protected] >
* Update src/Console/ModelsCommand.php
Co-authored-by: Hafez Divandari <[email protected] >
* Tweak bool
* Update src/Console/ModelsCommand.php
Co-authored-by: Hafez Divandari <[email protected] >
* composer fix-style
* Remove custom types, default to string
---------
Co-authored-by: barryvdh <[email protected] >
Co-authored-by: laravel-ide-helper <[email protected] >
Co-authored-by: Hafez Divandari <[email protected] >
2024-02-17 11:12:12 +01:00
Barry vd. Heuvel
ed39977a30
Switch to 3.0 tag ( #1519 )
2024-02-17 11:11:50 +01:00
Markus Podar
bcc233280b
[TEST] Show that custom phpdoc tags without space afterwards are unexpectedly changed ( #981 )
...
* tests: show that custom phpdoc tags without space afterwards are unexpectedly changed
This adds a test for the (current bug) behaviour of https://github.com/barryvdh/laravel-ide-helper/issues/666
If this ever gets fixed, this fails and needs to be adapted,
ensuring it won't break again.
* test: adapt now that #666 has been fixed
2024-02-16 21:38:43 +01:00
Barry vd. Heuvel
77831852bb
Fix final class keyword ( #1517 )
...
* Fix final class keyword
* Add changelog
v2.15.1
2024-02-15 15:23:20 +01:00
Markus Podar
b47a118300
Adjust gitattribute ( #1515 )
...
and make up for the missing php-cs-fixer changes
The rest of the changes is just:
- sorted alphabetically
- align the `export-ignore` column
2024-02-14 14:49:24 +01:00
Barry vd. Heuvel and Markus Podar
dca3ebe81e
Prepare 2.15 release ( #1514 )
...
* Prepare 2.15 release
* Prepare 2.15 release
* Add missing CHANGELOG.md entries
---------
Co-authored-by: Markus Podar <[email protected] >
v2.15.0
2024-02-14 12:19:26 +01:00
Barry vd. Heuvel
c119e89cf0
CS
2024-02-08 11:11:51 +01:00
GeoSot
bc158a1b86
Add AllowDynamicProperties Attribute to cooperate with php8.2 deprecation ( #1428 )
...
* Add `AllowDynamicProperties` Attribute to cooperate with php8.2 deprecation
* lint snapshot
2024-02-08 11:09:30 +01:00
341c0ab89f
feat: add support for AsCollection and AsArrayObject casts ( #1393 )
...
* feat: add support for AsCollection and AsArrayObject casts
* update changelog
* improve tests
* remove change
* composer fix-style
* snapshot
---------
Co-authored-by: Barry vd. Heuvel <[email protected] >
Co-authored-by: laravel-ide-helper <[email protected] >
2024-02-08 10:59:02 +01:00
Menthol
cee441c87c
Fix #1300 relation_return_type must take precedence if it is defined ( #1394 )
2024-02-08 09:48:26 +01:00
Barry vd. Heuvel
9343d3a1cc
CS
2024-02-08 09:41:24 +01:00
f12d933ab1
Add support for non type-hinted attribute accessors with no backed property ( #1411 )
...
* Read Attribute type from parameter
* Update CHANGELOG.md
* Update ModelsCommand.php
---------
Co-authored-by: Barry vd. Heuvel <[email protected] >
Co-authored-by: Barry vd. Heuvel <[email protected] >
2024-02-08 09:39:10 +01:00
Norman Huth
4751420c9e
Accept scope & scopes as relation ( #1452 )
2024-02-08 09:20:47 +01:00
Caleb White
6115100a0f
Add support for composite keys ( #1479 )
...
* Add support for composite keys
* chore: add composite foreign key test
2024-02-08 07:42:27 +01:00
Sven
5c886fb653
Support the BINARY(...) database field type ( #1434 )
...
In singlestore we define some strings as
$table->char($columnName, 40)->charset('binary')->collation('binary');
In singelstore, this becomes 'BINARY(40)' instead of 'CHAR(40) CHARACTER SET 'binary' COLLATE 'binary'
This change would allow the generated proeperties to be 'string' instead of 'mixed', as using a string is correct in this case.
2024-02-07 22:01:48 +01:00
Barry vd. Heuvel
7d69dc6ea0
CS
2024-02-07 21:58:39 +01:00
Ben Poulson
62fc436c4c
Reintroduce support for multi-db setups ( #1426 )
...
This snipet was lost in the 2.12.x => 2.13.x change. Needs to be reintroduced to allow those who use fully qualified db+table names. (Eg, `database.table`)
2024-02-07 21:55:16 +01:00
409bbf665b
Fix unsetMethod in ModelsCommand ( #1453 )
...
* Fix unsetMethod in ModelsCommand
* composer fix-style
---------
Co-authored-by: Barry vd. Heuvel <[email protected] >
Co-authored-by: laravel-ide-helper <[email protected] >
2024-02-07 21:48:09 +01:00
Barry vd. Heuvel
2535f8e6ab
Fix tests and CS
2024-02-07 21:44:48 +01:00
James Bhatta
16548fc878
Update README.md ( #1451 )
...
Fix intra page link for PHPDocs for models
2024-02-07 21:40:24 +01:00
Barry vd. Heuvel
872b470d9b
Update CHANGELOG.md
2024-02-07 21:37:51 +01:00
Filip Iulian Pacurar
04c1a8d444
Support generating helper files for real-time facades ( #1455 )
...
* Support generating helper files for real-time facades
Add changelog entry for real-time facades support
Mention real-time facades support in readme
Fix code style
Import
* Remove useless assertions
We cannot 100% control the output file has only the real-time facades, anything else can be in the final output
2024-02-07 21:35:02 +01:00
snmatsui
c290af858d
reset foreignKeyConstraintsColumns on model loop start ( #1461 )
2024-02-07 21:31:12 +01:00
f64ff9c0b1
Add support for enum default arguments using enum cases ( #1464 )
...
* add case when default value is of type enum
* Update CHANGELOG.md
* add tests for enum arguments default values
* ignore psalm issue (built-in `\UnitEnum` class does not exists in PHP7)
* Update run-static-analysis.yml to use PHP8.1
---------
Co-authored-by: Barry vd. Heuvel <[email protected] >
Co-authored-by: Barry vd. Heuvel <[email protected] >
2024-02-07 21:27:30 +01:00
Allan Laal and Barry vd. Heuvel
f3ad134242
FIX vulnerability CVE-2021-43608 ( #1392 )
...
Doctrine DBAL 3.x before 3.1.4 allows SQL Injection: https://www.cve.org/CVERecord?id=CVE-2021-43608
Co-authored-by: Barry vd. Heuvel <[email protected] >
2024-02-07 21:24:42 +01:00
PapaBear and Timo Frenzel
9d14b019f6
skip swoole, otherwise fatal error ( #1477 )
...
Co-authored-by: Timo Frenzel <[email protected] >
2024-02-07 21:19:43 +01:00
netpok
f4656256fc
Fix non-facade classes will result in no autocomplete ( #841 )
...
* Filter out non-facade base classes
* Remove Model as it is already skipped because it's not a facade
2024-02-07 21:06:31 +01:00
Jackey Cheung
cc9ed4423b
disable inspections of helper files ( #1486 )
...
* disables all jetbrains inspections
* disables all jetbrains' & phpcs' inspections
2024-02-07 19:30:35 +01:00
Markus Podar
512612f22f
Remove outdated dev references to older versions ( #1508 )
2024-02-07 19:29:10 +01:00
Toby Twigger and Toby Twigger
115068e57b
Clarify use of --reset and --smart-reset flags in documentation ( #1494 )
...
* Update README.md
Clarified model behaviour when using the --reset option
* Add --smart-reset to the documentation
---------
Co-authored-by: Toby Twigger <[email protected] >
2024-02-07 14:36:45 +01:00
Markus Podar
a8b34ad228
Removed support for Laravel 8 and therefore for PHP < 8.0 ( #1504 )
...
* Removed support for Laravel 8 and therefore for PHP < 8.0
* Update php-cs-fixer to v3
* composer fix-style
2024-02-05 13:25:08 +01:00
Barry vd. Heuvel
485c756f6c
Prepare 2.14.0 release
v2.14.0
2024-02-05 09:16:36 +01:00
Markus Podar
cf4687f98c
Prepare 2.14.0 release ( #1503 )
2024-02-05 09:13:57 +01:00
Markus Podar
e65d30b27a
Remove doctrine/dbal:^4 support ( #1507 )
...
* Remove doctrine/dbal:^4 support
Tests fail with:
`PHP Fatal error: Declaration of Illuminate\Database\PDO\Concerns\ConnectsToDatabase::connect(array $params, $username = null, $password = null, array $driverOptions = []) must be compatible with Doctrine\DBAL\Driver::connect(array $params): Doctrine\DBAL\Driver\Connection in /home/runner/work/laravel-ide-helper/laravel-ide-helper/vendor/laravel/framework/src/Illuminate/Database/PDO/Concerns/ConnectsToDatabase.php on line 22`
* gha: install with downgrading all dependencies
* Add note to readme
2024-02-05 06:54:43 +01:00
Markus Podar
416e0ab243
Merge pull request #1506 from olexoliinyk0/test/case-of-1505
...
test: case for the issue #1505 ;
2024-02-03 21:02:28 +01:00
Markus Podar
9374952402
Adapt snapshot testcase
2024-02-03 20:56:57 +01:00
Oleksandr Oliinyk
850fc5fe7f
test: case for the issue #1505 ;
...
duplication of properties that have generic types specified and descriptions;
2024-02-02 18:37:44 +02:00
Markus Podar
726e595578
Add support for nikic/php-parser:^5 and (hopefully) doctrine/dbal:^4 ( #1502 )
...
* Add support for nikic/php-parser:^5
- `createForHostVersion` has been added to php-parse 4.18 so code can
run with both versions [1]
- therefore also bumped the minimum required version to it
Note:
The dev dependency vimeo/psalm is **not** compatible with
php-parser:^5 currently. This does not impact usages of this library,
but sometimes cause friction when working on this library.
For our CI this isn't a problem, because we already remove that
dependency before running the test suite.
[1] https://github.com/nikic/PHP-Parser/blob/master/UPGRADE-5.0.md#changes-to-the-parser-factory
* gha: prevent cancelling of all jobs if one fails
* Update CHANGELOG.md
* gha: remove unsupported Laravel / PHP combinations
According to https://laravel.com/docs/10.x/releases
* Add dbal:^4 too
2024-01-28 19:33:31 +01:00
dependabot[bot] and dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
6336db0548
Bump the deps group with 1 update ( #1478 )
...
Bumps the deps group with 1 update: [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action ).
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases )
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md )
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: deps
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-01 10:36:20 +01:00
Markus Podar
21352a1e48
Merge pull request #1473 from sergiy-petrov/php8.3
2023-10-05 15:58:39 +02:00
Serhii Petrov
390874207f
Test against php 8.2 and 8.3
...
Integration tests against 8.3
Unit tests against 8.2 and 8.3
2023-10-05 16:10:38 +03:00
Markus Podar
3cdd3af631
chore: add dependabot for github actions ( #1470 )
2023-09-29 09:26:16 +02:00
erikn69
c751d3e176
ci: Use GitHub Actions V4 ( #1469 )
2023-09-29 09:25:55 +02:00
Markus Podar
1a3affd4f8
Catch error and exception ( #1431 ) ( #1465 )
...
Credit goes to @dongm2ez
2023-09-06 12:35:33 +02:00