mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 10:07:12 +00:00
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c2f68f14a | ||
|
|
a11dd14ee5 | ||
|
|
088968c3fc | ||
|
|
655e057626 | ||
|
|
c8d85a0d34 |
@@ -1,5 +1,21 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v3.5.2 - 2025-01-06
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
|
||||||
|
Fix empty/anonymous closure in meta command.
|
||||||
|
|
||||||
|
**Full Changelog**: https://github.com/barryvdh/laravel-ide-helper/compare/v3.5.1...v3.5.2
|
||||||
|
|
||||||
|
## v3.5.1 - 2025-01-06
|
||||||
|
|
||||||
|
### What's Changed
|
||||||
|
|
||||||
|
* Remove duplicate config, fix ->can() by @barryvdh in https://github.com/barryvdh/laravel-ide-helper/pull/1650
|
||||||
|
|
||||||
|
**Full Changelog**: https://github.com/barryvdh/laravel-ide-helper/compare/v3.5.0...v3.5.1
|
||||||
|
|
||||||
## v3.5.0 - 2025-01-06
|
## v3.5.0 - 2025-01-06
|
||||||
|
|
||||||
### What's Changed
|
### What's Changed
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ return collect(Illuminate\Support\Facades\Gate::abilities())
|
|||||||
|
|
||||||
$policyClass = null;
|
$policyClass = null;
|
||||||
|
|
||||||
if (get_class($reflection->getClosureThis()) === Illuminate\Auth\Access\Gate::class) {
|
$closureThis = $reflection->getClosureThis();
|
||||||
|
if ($closureThis && get_class($closureThis) === Illuminate\Auth\Access\Gate::class) {
|
||||||
$vars = $reflection->getClosureUsedVariables();
|
$vars = $reflection->getClosureUsedVariables();
|
||||||
|
|
||||||
if (isset($vars['callback'])) {
|
if (isset($vars['callback'])) {
|
||||||
|
|||||||
+7
-1
@@ -403,9 +403,15 @@ class Alias
|
|||||||
$macros = isset($properties['macros']) ? $properties['macros'] : [];
|
$macros = isset($properties['macros']) ? $properties['macros'] : [];
|
||||||
foreach ($macros as $macro_name => $macro_func) {
|
foreach ($macros as $macro_name => $macro_func) {
|
||||||
if (!in_array($macro_name, $this->usedMethods)) {
|
if (!in_array($macro_name, $this->usedMethods)) {
|
||||||
|
try {
|
||||||
|
$method = $this->getMacroFunction($macro_func);
|
||||||
|
} catch (Throwable $e) {
|
||||||
|
// Invalid method, skip
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// Add macros
|
// Add macros
|
||||||
$this->methods[] = new Macro(
|
$this->methods[] = new Macro(
|
||||||
$this->getMacroFunction($macro_func),
|
$method,
|
||||||
$this->alias,
|
$this->alias,
|
||||||
$reflection,
|
$reflection,
|
||||||
$macro_name,
|
$macro_name,
|
||||||
|
|||||||
Reference in New Issue
Block a user