Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Rector\CodeQuality\Rector\If_\CombineIfRector;
use Rector\CodeQuality\Rector\If_\ExplicitBoolCompareRector;
use Rector\CodeQuality\Rector\If_\ShortenElseIfRector;
use Rector\CodingStyle\Rector\ClassMethod\NewlineBeforeNewAssignSetRector;
use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector;
use Rector\CodingStyle\Rector\Encapsed\WrapEncapsedVariableInCurlyBracesRector;
use Rector\CodingStyle\Rector\If_\NullableCompareToNullRector;
Expand All @@ -19,6 +20,7 @@

return RectorConfig::configure()
->withSkip([
NewlineBeforeNewAssignSetRector::class,
CombineIfRector::class,
ExplicitBoolCompareRector::class,
ForRepeatedCountToOwnVariableRector::class,
Expand Down
3 changes: 3 additions & 0 deletions src/Annotations/OpenApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@
class OpenApi extends AbstractAnnotation
{
public const VERSION_3_0_0 = '3.0.0';

public const VERSION_3_1_0 = '3.1.0';

public const DEFAULT_VERSION = self::VERSION_3_0_0;

public const SUPPORTED_VERSIONS = [
self::VERSION_3_0_0, '3.0.1', '3.0.2', '3.0.3', '3.0.4',
self::VERSION_3_1_0, '3.1.1',
Expand Down
1 change: 1 addition & 0 deletions src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class Generator

/** @var array<string,string> */
public const DEFAULT_ALIASES = ['oa' => 'OpenApi\\Annotations'];

/** @var array<string> */
public const DEFAULT_NAMESPACES = ['OpenApi\\Annotations\\'];

Expand Down
2 changes: 2 additions & 0 deletions src/Loggers/ConsoleLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
class ConsoleLogger extends AbstractLogger implements LoggerInterface
{
public const COLOR_ERROR = "\033[31m";

public const COLOR_WARNING = "\033[33m";

public const COLOR_STOP = "\033[0m";

private const LOG_LEVELS_UP_TO_NOTICE = [
Expand Down
1 change: 1 addition & 0 deletions src/Processors/AugmentParameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
class AugmentParameters implements GeneratorAwareInterface
{
use DocblockTrait;

use GeneratorAwareTrait;

protected bool $augmentOperationParameters;
Expand Down
2 changes: 2 additions & 0 deletions src/Processors/AugmentProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
class AugmentProperties implements GeneratorAwareInterface
{
use Concerns\DocblockTrait;

use Concerns\RefTrait;

use GeneratorAwareTrait;

public function __invoke(Analysis $analysis): void
Expand Down