Skip to content

Commit

Permalink
composer update vendor/
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Jan 6, 2023
1 parent 5cb925c commit b44d6a5
Show file tree
Hide file tree
Showing 42 changed files with 738 additions and 434 deletions.
44 changes: 23 additions & 21 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -645,17 +645,17 @@
},
{
"name": "spaze/phpstan-disallowed-calls",
"version": "v2.11.2",
"version_normalized": "2.11.2.0",
"version": "v2.11.3",
"version_normalized": "2.11.3.0",
"source": {
"type": "git",
"url": "https://github.com/spaze/phpstan-disallowed-calls.git",
"reference": "f1f319bda7cc706f6bc5079f5a564ebfcc8ad5f3"
"reference": "800f5f8f6e30cb2136488996e82899a029176c0b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/spaze/phpstan-disallowed-calls/zipball/f1f319bda7cc706f6bc5079f5a564ebfcc8ad5f3",
"reference": "f1f319bda7cc706f6bc5079f5a564ebfcc8ad5f3",
"url": "https://api.github.com/repos/spaze/phpstan-disallowed-calls/zipball/800f5f8f6e30cb2136488996e82899a029176c0b",
"reference": "800f5f8f6e30cb2136488996e82899a029176c0b",
"shasum": ""
},
"require": {
Expand All @@ -670,7 +670,7 @@
"phpunit/phpunit": "^7.0 || ^9.4.2",
"spaze/coding-standard": "^1.3"
},
"time": "2022-12-26T14:16:10+00:00",
"time": "2023-01-06T18:04:04+00:00",
"type": "phpstan-extension",
"extra": {
"phpstan": {
Expand Down Expand Up @@ -702,7 +702,7 @@
],
"support": {
"issues": "https://github.com/spaze/phpstan-disallowed-calls/issues",
"source": "https://github.com/spaze/phpstan-disallowed-calls/tree/v2.11.2"
"source": "https://github.com/spaze/phpstan-disallowed-calls/tree/v2.11.3"
},
"install-path": "../spaze/phpstan-disallowed-calls"
},
Expand Down Expand Up @@ -768,17 +768,17 @@
},
{
"name": "staabm/phpstan-dba",
"version": "0.2.54",
"version_normalized": "0.2.54.0",
"version": "0.2.55",
"version_normalized": "0.2.55.0",
"source": {
"type": "git",
"url": "https://github.com/staabm/phpstan-dba.git",
"reference": "246281fe4479cab7388ed480fc58a5b63b2d833f"
"reference": "af71a9ea81a9fa95b04b7abf304d73da8a86183c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/staabm/phpstan-dba/zipball/246281fe4479cab7388ed480fc58a5b63b2d833f",
"reference": "246281fe4479cab7388ed480fc58a5b63b2d833f",
"url": "https://api.github.com/repos/staabm/phpstan-dba/zipball/af71a9ea81a9fa95b04b7abf304d73da8a86183c",
"reference": "af71a9ea81a9fa95b04b7abf304d73da8a86183c",
"shasum": ""
},
"require": {
Expand All @@ -794,13 +794,15 @@
"ext-pdo": "*",
"friendsofphp/php-cs-fixer": "3.4.0",
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpstan/extension-installer": "^1.2",
"phpstan/phpstan-php-parser": "^1.1",
"phpstan/phpstan-phpunit": "^1.0",
"phpstan/phpstan-strict-rules": "^1.1",
"phpunit/phpunit": "^9",
"tomasvotruba/unused-public": "^0.0.34",
"vlucas/phpdotenv": "^5.4"
},
"time": "2022-12-14T19:36:18+00:00",
"time": "2023-01-06T19:26:33+00:00",
"type": "phpstan-extension",
"extra": {
"phpstan": {
Expand All @@ -821,7 +823,7 @@
],
"support": {
"issues": "https://github.com/staabm/phpstan-dba/issues",
"source": "https://github.com/staabm/phpstan-dba/tree/0.2.54"
"source": "https://github.com/staabm/phpstan-dba/tree/0.2.55"
},
"install-path": "../staabm/phpstan-dba"
},
Expand Down Expand Up @@ -1272,17 +1274,17 @@
},
{
"name": "tomasvotruba/unused-public",
"version": "0.0.33.72",
"version_normalized": "0.0.33.72",
"version": "0.0.34.72",
"version_normalized": "0.0.34.72",
"source": {
"type": "git",
"url": "https://github.com/TomasVotruba/unused-public.git",
"reference": "4572210524a8d93e4185a955f74af3cb4c1acdff"
"reference": "c00a1a70be2dc08568044e6ec2855de7737b87f5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/TomasVotruba/unused-public/zipball/4572210524a8d93e4185a955f74af3cb4c1acdff",
"reference": "4572210524a8d93e4185a955f74af3cb4c1acdff",
"url": "https://api.github.com/repos/TomasVotruba/unused-public/zipball/c00a1a70be2dc08568044e6ec2855de7737b87f5",
"reference": "c00a1a70be2dc08568044e6ec2855de7737b87f5",
"shasum": ""
},
"require": {
Expand All @@ -1291,7 +1293,7 @@
"phpstan/phpstan": "^1.9.3",
"webmozart/assert": "^1.11"
},
"time": "2022-12-29T19:33:02+00:00",
"time": "2023-01-06T15:39:59+00:00",
"type": "phpstan-extension",
"extra": {
"phpstan": {
Expand All @@ -1313,7 +1315,7 @@
"description": "Detect unused public properties, constants and methods in your code",
"support": {
"issues": "https://github.com/TomasVotruba/unused-public/issues",
"source": "https://github.com/TomasVotruba/unused-public/tree/0.0.33.72"
"source": "https://github.com/TomasVotruba/unused-public/tree/0.0.34.72"
},
"funding": [
{
Expand Down
22 changes: 11 additions & 11 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => '__root__',
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => 'fdb5b5653ef31855f425bc196b352c6cb2bb116b',
'reference' => '5cb925cb71769f1fab5e6a3db42c1616f41c0556',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -13,7 +13,7 @@
'__root__' => array(
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'reference' => 'fdb5b5653ef31855f425bc196b352c6cb2bb116b',
'reference' => '5cb925cb71769f1fab5e6a3db42c1616f41c0556',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -110,9 +110,9 @@
'dev_requirement' => false,
),
'spaze/phpstan-disallowed-calls' => array(
'pretty_version' => 'v2.11.2',
'version' => '2.11.2.0',
'reference' => 'f1f319bda7cc706f6bc5079f5a564ebfcc8ad5f3',
'pretty_version' => 'v2.11.3',
'version' => '2.11.3.0',
'reference' => '800f5f8f6e30cb2136488996e82899a029176c0b',
'type' => 'phpstan-extension',
'install_path' => __DIR__ . '/../spaze/phpstan-disallowed-calls',
'aliases' => array(),
Expand All @@ -128,9 +128,9 @@
'dev_requirement' => false,
),
'staabm/phpstan-dba' => array(
'pretty_version' => '0.2.54',
'version' => '0.2.54.0',
'reference' => '246281fe4479cab7388ed480fc58a5b63b2d833f',
'pretty_version' => '0.2.55',
'version' => '0.2.55.0',
'reference' => 'af71a9ea81a9fa95b04b7abf304d73da8a86183c',
'type' => 'phpstan-extension',
'install_path' => __DIR__ . '/../staabm/phpstan-dba',
'aliases' => array(),
Expand Down Expand Up @@ -191,9 +191,9 @@
'dev_requirement' => false,
),
'tomasvotruba/unused-public' => array(
'pretty_version' => '0.0.33.72',
'version' => '0.0.33.72',
'reference' => '4572210524a8d93e4185a955f74af3cb4c1acdff',
'pretty_version' => '0.0.34.72',
'version' => '0.0.34.72',
'reference' => 'c00a1a70be2dc08568044e6ec2855de7737b87f5',
'type' => 'phpstan-extension',
'install_path' => __DIR__ . '/../tomasvotruba/unused-public',
'aliases' => array(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use PHPStan\Reflection\MethodReflection;
use PHPStan\Rules\RuleError;
use PHPStan\Rules\RuleErrorBuilder;
use PHPStan\Type\ConstantScalarType;
use PHPStan\Type\ObjectType;
use PHPStan\Type\Type;
use PHPStan\Type\TypeWithClassName;
Expand Down Expand Up @@ -109,7 +108,7 @@ private function hasAllowedParams(Scope $scope, ?CallLike $node, array $allowCon

foreach ($allowConfig as $param) {
$type = $this->getArgType($node, $scope, $param);
if (!$type instanceof ConstantScalarType) {
if ($type === null) {
return !$paramsRequired;
}
if (!$param->matches($type)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

namespace Spaze\PHPStan\Rules\Disallowed\Params;

use PHPStan\Type\ConstantScalarType;
use PHPStan\Type\Type;

interface DisallowedCallParam
{

public function matches(ConstantScalarType $type): bool;
public function matches(Type $type): bool;


public function getPosition(): ?int;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Spaze\PHPStan\Rules\Disallowed\Params;

use PHPStan\Type\ConstantScalarType;
use PHPStan\Type\Type;

/**
* @template T of int|bool|string|null
Expand All @@ -21,7 +21,7 @@ abstract class DisallowedCallParamValue implements DisallowedCallParam
private $value;


abstract public function matches(ConstantScalarType $type): bool;
abstract public function matches(Type $type): bool;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

namespace Spaze\PHPStan\Rules\Disallowed\Params;

use PHPStan\Type\ConstantScalarType;
use PHPStan\Type\Type;

/**
* @extends DisallowedCallParamValue<int|bool|string|null>
*/
final class DisallowedCallParamValueAny extends DisallowedCallParamValue
{

public function matches(ConstantScalarType $type): bool
public function matches(Type $type): bool
{
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@

use PHPStan\Type\Constant\ConstantStringType;
use PHPStan\Type\ConstantScalarType;
use PHPStan\Type\Type;

/**
* @extends DisallowedCallParamValue<int|bool|string|null>
*/
class DisallowedCallParamValueCaseInsensitiveExcept extends DisallowedCallParamValue
{

public function matches(ConstantScalarType $type): bool
public function matches(Type $type): bool
{
if (!$type instanceof ConstantScalarType) {
return false;
}
$a = is_string($this->getValue()) ? strtolower($this->getValue()) : $this->getValue();
$b = $type instanceof ConstantStringType ? strtolower($type->getValue()) : $type->getValue();
return $a !== $b;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@
namespace Spaze\PHPStan\Rules\Disallowed\Params;

use PHPStan\Type\ConstantScalarType;
use PHPStan\Type\Type;

/**
* @extends DisallowedCallParamValue<int|bool|string|null>
*/
class DisallowedCallParamValueExcept extends DisallowedCallParamValue
{

public function matches(ConstantScalarType $type): bool
public function matches(Type $type): bool
{
if (!$type instanceof ConstantScalarType) {
return false;
}
return $this->getValue() !== $type->getValue();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
namespace Spaze\PHPStan\Rules\Disallowed\Params;

use PHPStan\Type\Constant\ConstantIntegerType;
use PHPStan\Type\ConstantScalarType;
use PHPStan\Type\Type;

/**
* @extends DisallowedCallParamValue<int>
*/
class DisallowedCallParamValueFlagExcept extends DisallowedCallParamValue
{

public function matches(ConstantScalarType $type): bool
public function matches(Type $type): bool
{
if (!$type instanceof ConstantIntegerType) {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
namespace Spaze\PHPStan\Rules\Disallowed\Params;

use PHPStan\Type\Constant\ConstantIntegerType;
use PHPStan\Type\ConstantScalarType;
use PHPStan\Type\Type;

/**
* @extends DisallowedCallParamValue<int>
*/
class DisallowedCallParamValueFlagSpecific extends DisallowedCallParamValue
{

public function matches(ConstantScalarType $type): bool
public function matches(Type $type): bool
{
if (!$type instanceof ConstantIntegerType) {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@
namespace Spaze\PHPStan\Rules\Disallowed\Params;

use PHPStan\Type\ConstantScalarType;
use PHPStan\Type\Type;

/**
* @extends DisallowedCallParamValue<int|bool|string|null>
*/
class DisallowedCallParamValueSpecific extends DisallowedCallParamValue
{

public function matches(ConstantScalarType $type): bool
public function matches(Type $type): bool
{
if (!$type instanceof ConstantScalarType) {
return false;
}
return $this->getValue() === $type->getValue();
}

Expand Down
11 changes: 11 additions & 0 deletions vendor/staabm/phpstan-dba/.github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Dependabot config reference
# https://help.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: composer
directory: /
versioning-strategy: increase
schedule:
interval: daily
open-pull-requests-limit: 15
Loading

0 comments on commit b44d6a5

Please sign in to comment.