Skip to content

Commit 65add0c

Browse files
chore(deps): bump glob-parent from 3.1.0 to 5.1.2 in /extensions/emoji/js (#3345)
* chore(deps): bump glob-parent in /extensions/emoji/js Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 3.1.0 to 5.1.2. - [Release notes](https://github.com/gulpjs/glob-parent/releases) - [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md) - [Commits](gulpjs/glob-parent@v3.1.0...v5.1.2) --- updated-dependencies: - dependency-name: glob-parent dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * Apply fixes from StyleCI [ci skip] [skip ci] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: StyleCI Bot <[email protected]>
1 parent ead4eaf commit 65add0c

File tree

76 files changed

+595
-69
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+595
-69
lines changed

src/Concerns/HasContainer.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* This file is part of Flarum.
7+
*
8+
* For detailed copyright and license information, please view the
9+
* LICENSE file that was distributed with this source code.
10+
*/
11+
512
namespace Flarum\PHPStan\Concerns;
613

714
use Illuminate\Container\Container;

src/Concerns/LoadsAuthModel.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* This file is part of Flarum.
7+
*
8+
* For detailed copyright and license information, please view the
9+
* LICENSE file that was distributed with this source code.
10+
*/
11+
512
namespace Flarum\PHPStan\Concerns;
613

714
use Illuminate\Config\Repository as ConfigRepository;

src/Contracts/Methods/PassableContract.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<?php
2+
23
/*
3-
* This file is part of PhpStorm.
4-
*
5-
* (c) Nuno Maduro <[email protected]>
4+
* This file is part of Flarum.
65
*
7-
* For the full copyright and license information, please view the LICENSE
8-
* file that was distributed with this source code.
6+
* For detailed copyright and license information, please view the
7+
* LICENSE file that was distributed with this source code.
98
*/
109

1110
namespace Flarum\PHPStan\Contracts\Methods;

src/Contracts/Methods/Pipes/PipeContract.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* This file is part of Flarum.
7+
*
8+
* For detailed copyright and license information, please view the
9+
* LICENSE file that was distributed with this source code.
10+
*/
11+
512
namespace Flarum\PHPStan\Contracts\Methods\Pipes;
613

714
use Closure;

src/Contracts/Types/PassableContract.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<?php
2+
23
/*
3-
* This file is part of PhpStorm.
4-
*
5-
* (c) Nuno Maduro <[email protected]>
4+
* This file is part of Flarum.
65
*
7-
* For the full copyright and license information, please view the LICENSE
8-
* file that was distributed with this source code.
6+
* For detailed copyright and license information, please view the
7+
* LICENSE file that was distributed with this source code.
98
*/
109

1110
namespace Flarum\PHPStan\Contracts\Types;

src/Contracts/Types/Pipes/PipeContract.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* This file is part of Flarum.
7+
*
8+
* For detailed copyright and license information, please view the
9+
* LICENSE file that was distributed with this source code.
10+
*/
11+
512
namespace Flarum\PHPStan\Contracts\Types\Pipes;
613

714
use Closure;

src/Methods/BuilderHelper.php

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,22 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* This file is part of Flarum.
7+
*
8+
* For detailed copyright and license information, please view the
9+
* LICENSE file that was distributed with this source code.
10+
*/
11+
512
namespace Flarum\PHPStan\Methods;
613

7-
use Illuminate\Database\Eloquent\Builder as EloquentBuilder;
8-
use Illuminate\Database\Query\Builder as QueryBuilder;
9-
use Illuminate\Support\Str;
1014
use Flarum\PHPStan\Reflection\AnnotationScopeMethodParameterReflection;
1115
use Flarum\PHPStan\Reflection\AnnotationScopeMethodReflection;
1216
use Flarum\PHPStan\Reflection\DynamicWhereParameterReflection;
1317
use Flarum\PHPStan\Reflection\EloquentBuilderMethodReflection;
18+
use Illuminate\Database\Eloquent\Builder as EloquentBuilder;
19+
use Illuminate\Database\Query\Builder as QueryBuilder;
20+
use Illuminate\Support\Str;
1421
use PHPStan\Reflection\ClassReflection;
1522
use PHPStan\Reflection\MethodReflection;
1623
use PHPStan\Reflection\MissingMethodFromReflectionException;
@@ -83,7 +90,10 @@ public function dynamicWhere(
8390
$finder = substr($methodName, 5);
8491

8592
$segments = preg_split(
86-
'/(And|Or)(?=[A-Z])/', $finder, -1, PREG_SPLIT_DELIM_CAPTURE
93+
'/(And|Or)(?=[A-Z])/',
94+
$finder,
95+
-1,
96+
PREG_SPLIT_DELIM_CAPTURE
8797
);
8898

8999
if ($segments !== false) {

src/Methods/EloquentBuilderForwardsCallsExtension.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* This file is part of Flarum.
7+
*
8+
* For detailed copyright and license information, please view the
9+
* LICENSE file that was distributed with this source code.
10+
*/
11+
512
namespace Flarum\PHPStan\Methods;
613

14+
use Flarum\PHPStan\Reflection\EloquentBuilderMethodReflection;
715
use Illuminate\Database\Eloquent\Builder as EloquentBuilder;
816
use Illuminate\Database\Eloquent\Model;
917
use Illuminate\Database\Eloquent\SoftDeletes;
10-
use Flarum\PHPStan\Reflection\EloquentBuilderMethodReflection;
1118
use PHPStan\Analyser\OutOfClassScope;
1219
use PHPStan\Reflection\ClassReflection;
1320
use PHPStan\Reflection\MethodReflection;
@@ -131,7 +138,8 @@ private function findMethod(ClassReflection $classReflection, string $methodName
131138
$returnType = $parametersAcceptor->getReturnType();
132139

133140
return new EloquentBuilderMethodReflection(
134-
$methodName, $classReflection,
141+
$methodName,
142+
$classReflection,
135143
$ref,
136144
$parametersAcceptor->getParameters(),
137145
$returnType,
@@ -142,7 +150,8 @@ private function findMethod(ClassReflection $classReflection, string $methodName
142150
// Returning custom reflection
143151
// to ensure return type is always `EloquentBuilder<Model>`
144152
return new EloquentBuilderMethodReflection(
145-
$methodName, $classReflection,
153+
$methodName,
154+
$classReflection,
146155
$ref,
147156
$parametersAcceptor->getParameters(),
148157
new GenericObjectType($classReflection->getName(), [$modelType]),

src/Methods/Extension.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* This file is part of Flarum.
7+
*
8+
* For detailed copyright and license information, please view the
9+
* LICENSE file that was distributed with this source code.
10+
*/
11+
512
namespace Flarum\PHPStan\Methods;
613

714
use Illuminate\Database\Eloquent\Model;

src/Methods/HigherOrderCollectionProxyExtension.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* This file is part of Flarum.
7+
*
8+
* For detailed copyright and license information, please view the
9+
* LICENSE file that was distributed with this source code.
10+
*/
11+
512
namespace Flarum\PHPStan\Methods;
613

714
use Flarum\PHPStan\Support\HigherOrderCollectionProxyHelper;
@@ -39,8 +46,7 @@ public function getMethod(
3946

4047
$returnType = HigherOrderCollectionProxyHelper::determineReturnType($methodType->getValue(), $valueType, $modelMethodReturnType);
4148

42-
return new class($classReflection, $methodName, $modelMethodReflection, $returnType) implements MethodReflection
43-
{
49+
return new class($classReflection, $methodName, $modelMethodReflection, $returnType) implements MethodReflection {
4450
/** @var ClassReflection */
4551
private $classReflection;
4652

0 commit comments

Comments
 (0)