Skip to content

Commit

Permalink
Support customized local configuration files for PHPStan and PHPUnit …
Browse files Browse the repository at this point in the history
…(#502)

* Support customized local configuration files for PHPStan and PHPUnit

* Optimize

* Fix return type declarations in Kafka and Log facades

* Refactor array and collection mixins

* Update type hint for process method in TaskHandleListener

* Update CacheInterface and Cache class

* Refactor ParameterParser class by removing unused code

* Refactor Etcd and Nacos drivers, and fix EnvWriter return statement

* Fix type hinting in exception handling functions

* Fix column value retrieval in FastPaginate.php

* Refactor validation rules in ValidationAspect.php

* Update helper functions and fix deprecated functions

* Refactor log writer to use null coalescing operator for default values

* Fix code formatting and remove unused code

* Update variable type in ResponseSequence class and fix factory function in Functions.php

* Fix code inconsistencies and improve code readability

* Update phpstan.neon.dist to include phpstan-baseline.neon

This commit updates the phpstan.neon.dist file to include the phpstan-baseline.neon file. The previous include statement for vendor/phpstan/phpstan-deprecation-rules/rules.neon has been commented out. This change ensures that the phpstan-baseline.neon file is included in the analysis performed by vendor/bin/phpstan.

* Update PHPStan configuration file

* Fix isInstanceCall method logic

* Refactor access log message formatting

---------

Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com>
  • Loading branch information
huangdijia and huangdijia committed Dec 20, 2023
1 parent 6592660 commit b05813a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Aspect/QueriesRelationshipsAspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function process(ProceedingJoinPoint $proceedingJoinPoint)
$types = $model->newModelQuery()->distinct()->pluck($relation->getMorphType())->filter()->all();

foreach ($types as &$type) {
$type = $model::getActualClassNameForMorph($type) ?? $type;
$type = $model::getActualClassNameForMorph($type) ?: $type;
}

$proceedingJoinPoint->arguments['keys']['types'] = $types;
Expand Down

0 comments on commit b05813a

Please sign in to comment.