From d5bbd896591aa3d00cde1c0d85e32136cefe3fd0 Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Mon, 27 Nov 2023 14:15:30 -0600 Subject: [PATCH 01/89] updated composer; added shortcut commands --- composer.json | 19 ++++++++++++-- composer.lock | 71 ++++++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 81 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index 3cf66e667..7971f1f04 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,8 @@ "ext-pdo_sqlite": "*", "ext-zip": "*", "phpunit/phpunit": "9.5.28", - "psr/log": "1.1.*" + "psr/log": "1.1.*", + "squizlabs/php_codesniffer": "^3.7" }, "config": { "optimize-autoloader": true, @@ -71,5 +72,19 @@ "source": "https://github.com/zephir-lang/zephir", "irc": "irc://irc.freenode.net/zephir", "docs": "https://docs.zephir-lang.com" - } + }, + "scripts": { + "cs": "./vendor/bin/phpcs --standard=phpcs.xml.dist", + "cs-fix": "./vendor/bin/phpcbf --standard=phpcs.xml.dist", + "test": "./vendor/bin/phpunit --testsuite Zephir", + "test-coverage": "./vendor/bin/phpunit --testsuite Zephir --coverage-html ./tests/output/coverage", + "test-coverage-html": "./vendor/bin/phpunit --testsuite Zephir --coverage-php ./tests/output/coverage/coverage.xml" + }, + "scripts-descriptions": { + "cs": "Run PHPCS", + "cs-fix": "Run PHPCBF", + "test": "Run all tests", + "test-coverage": "Run all tests with coverage (clover)", + "test-coverage-html": "Run all tests with coverage (HTML)" + } } diff --git a/composer.lock b/composer.lock index a42e55c63..66b21b4ac 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "12ba06c84bf00534e75ea0d79e22a65b", + "content-hash": "b2471ed2d66bc4e86d3c83993063d763", "packages": [ { "name": "monolog/monolog", @@ -2933,18 +2933,75 @@ ], "time": "2020-09-28T06:39:44+00:00" }, + { + "name": "squizlabs/php_codesniffer", + "version": "3.7.2", + "source": { + "type": "git", + "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", + "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ed8e00df0a83aa96acf703f8c2979ff33341f879", + "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879", + "shasum": "" + }, + "require": { + "ext-simplexml": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": ">=5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" + }, + "bin": [ + "bin/phpcs", + "bin/phpcbf" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Greg Sherwood", + "role": "lead" + } + ], + "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", + "homepage": "https://github.com/squizlabs/PHP_CodeSniffer", + "keywords": [ + "phpcs", + "standards", + "static analysis" + ], + "support": { + "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues", + "source": "https://github.com/squizlabs/PHP_CodeSniffer", + "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" + }, + "time": "2023-02-22T23:07:41+00:00" + }, { "name": "theseer/tokenizer", - "version": "1.2.1", + "version": "1.2.2", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" + "reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", - "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/b2ad5003ca10d4ee50a12da31de12a5774ba6b96", + "reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96", "shasum": "" }, "require": { @@ -2973,7 +3030,7 @@ "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "support": { "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/1.2.1" + "source": "https://github.com/theseer/tokenizer/tree/1.2.2" }, "funding": [ { @@ -2981,7 +3038,7 @@ "type": "github" } ], - "time": "2021-07-28T10:34:58+00:00" + "time": "2023-11-20T00:12:19+00:00" } ], "aliases": [], From f686a017dcca8528baf999ab520645e8453f2b9f Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Mon, 27 Nov 2023 14:16:13 -0600 Subject: [PATCH 02/89] switching to psr-12 --- phpcs.xml.dist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpcs.xml.dist b/phpcs.xml.dist index e70f4be57..9201b51f6 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -17,8 +17,8 @@ - - + + From 580ea0fdf9d273c41622a6076d57b103c7e879fe Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Mon, 27 Nov 2023 17:15:30 -0600 Subject: [PATCH 03/89] a lot of phpcs fixes --- phpcs.xml.dist | 1 + src/AliasManager.php | 71 +- src/Backend/Backend.php | 2637 +++++++------ src/Backend/FcallManager.php | 100 +- src/Backend/FcallManagerInterface.php | 10 +- src/Backend/StringsManager.php | 179 +- src/Backend/VariablesManager.php | 66 +- src/Branch.php | 85 +- src/BranchManager.php | 30 +- src/Builder/FunctionCallBuilder.php | 12 +- .../Operators/AbstractOperatorBuilder.php | 4 +- src/Builder/Operators/CastOperatorBuilder.php | 18 +- .../Operators/UnaryOperatorBuilder.php | 22 +- src/Builder/Statements/IfStatementBuilder.php | 4 +- .../Statements/LetStatementBuilder.php | 4 +- src/Cache/FunctionCache.php | 13 +- src/Cache/Manager.php | 24 +- src/Cache/MethodCache.php | 70 +- src/Cache/SlotsCache.php | 44 +- src/Cache/StaticMethodCache.php | 21 +- src/Call.php | 970 +++-- src/Class/Constant.php | 75 +- src/Class/Definition/Definition.php | 1934 ++++----- src/Class/Entry.php | 70 +- src/Class/Method/Method.php | 3449 +++++++++-------- src/Class/Method/Parameters.php | 101 +- src/Class/Property.php | 351 +- src/Code/ArgInfoDefinition.php | 423 +- src/Code/Builder/Struct.php | 67 +- src/Code/Printer.php | 158 +- src/CompilationContext.php | 138 +- src/CompiledExpression.php | 32 +- src/Compiler.php | 3214 +++++++-------- src/Compiler/FileInterface.php | 16 +- src/CompilerFile.php | 1375 +++---- src/CompilerFileAnonymous.php | 212 +- src/Config.php | 199 +- src/ConfigException.php | 2 +- src/Console/Application.php | 128 +- src/Console/Command/ApiCommand.php | 77 +- src/Console/Command/BuildCommand.php | 30 +- src/Console/Command/CleanCommand.php | 13 +- src/Console/Command/CompileCommand.php | 15 +- .../Command/DevelopmentModeAwareTrait.php | 4 +- src/Console/Command/FullCleanCommand.php | 11 +- src/Console/Command/GenerateCommand.php | 11 +- src/Console/Command/InitCommand.php | 111 +- src/Console/Command/InstallCommand.php | 11 +- src/Console/Command/ListCommand.php | 16 +- src/Console/Command/RemoveOptionsTrait.php | 8 +- src/Console/Command/StubsCommand.php | 13 +- src/Detectors/ReadDetector.php | 19 +- src/Detectors/WriteDetector.php | 159 +- src/Documentation.php | 269 +- src/Documentation/Annotation.php | 12 +- src/Documentation/Annotation/Link.php | 19 +- .../Annotation/ReturnAnnotation.php | 12 +- src/Documentation/Annotation/See.php | 2 +- src/Documentation/Docblock.php | 112 +- src/Documentation/DocblockParser.php | 151 +- src/Documentation/File/ClassFile.php | 26 +- src/Documentation/File/ClassesFile.php | 12 +- src/Documentation/File/IndexFile.php | 14 +- src/Documentation/File/NamespaceFile.php | 26 +- src/Documentation/File/NamespacesFile.php | 16 +- src/Documentation/File/Sitemap.php | 36 +- src/Documentation/File/SourceFile.php | 10 +- src/Documentation/FileInterface.php | 10 +- src/Documentation/NamespaceAccessor.php | 50 +- src/Documentation/NamespaceHelper.php | 31 +- src/Documentation/Template.php | 100 +- src/Documentation/Theme.php | 291 +- src/Exception.php | 4 +- src/Exception/CompilerException.php | 21 +- src/Exception/ExceptionExtraAwareTrait.php | 24 +- src/Exception/ExceptionInterface.php | 16 +- src/Exception/FileSystemException.php | 4 +- src/Exception/IllegalOperationException.php | 4 +- src/Exception/IllegalStateException.php | 4 +- src/Exception/InvalidArgumentException.php | 4 +- src/Exception/LogicException.php | 4 +- src/Exception/NotImplementedException.php | 4 +- src/Exception/ParseException.php | 21 +- src/Exception/RuntimeException.php | 4 +- src/Expression.php | 352 +- src/Expression/Builder/AbstractBuilder.php | 111 +- src/Expression/Builder/BuilderFactory.php | 60 +- .../Builder/Factory/OperatorsFactory.php | 71 +- .../Builder/Factory/StatementsFactory.php | 57 +- .../Builder/Operators/AbstractOperator.php | 4 +- .../Operators/AssignPropertyOperator.php | 18 +- .../Operators/AssignVariableOperator.php | 70 +- .../Builder/Operators/BinaryOperator.php | 110 +- .../Builder/Operators/RawOperator.php | 4 +- .../Builder/Operators/UnaryOperator.php | 63 +- src/Expression/Builder/RawExpression.php | 4 +- .../Builder/Statements/AbstractStatement.php | 4 +- .../Statements/CallFunctionStatement.php | 65 +- .../Statements/CallMethodStatement.php | 16 +- .../Statements/CallStaticStatement.php | 80 +- .../Builder/Statements/IfStatement.php | 53 +- .../Builder/Statements/LetStatement.php | 30 +- .../Builder/Statements/RawStatement.php | 4 +- .../Builder/Statements/StatementsBlock.php | 44 +- src/Expression/Closure.php | 113 +- src/Expression/ClosureArrow.php | 30 +- src/Expression/Constants.php | 100 +- src/Expression/NativeArray.php | 513 ++- src/Expression/NativeArrayAccess.php | 288 +- src/Expression/PropertyAccess.php | 185 +- src/Expression/PropertyDynamicAccess.php | 135 +- src/Expression/Reference.php | 98 +- src/Expression/StaticConstantAccess.php | 78 +- src/Expression/StaticPropertyAccess.php | 138 +- src/FileSystem/FileSystemInterface.php | 82 +- src/FileSystem/HardDisk.php | 246 +- src/FunctionCall.php | 729 ++-- src/FunctionDefinition.php | 26 +- src/HeadersManager.php | 14 +- src/LiteralCompiledExpression.php | 4 +- src/Logger/Formatter/CompilerFormatter.php | 81 +- src/MethodCall.php | 168 +- src/Name.php | 115 +- src/Operators/AbstractOperator.php | 199 +- src/Operators/Arithmetical/AddOperator.php | 10 +- .../Arithmetical/ArithmeticalBaseOperator.php | 568 ++- src/Operators/Arithmetical/DivOperator.php | 512 ++- src/Operators/Arithmetical/ModOperator.php | 533 ++- src/Operators/Arithmetical/MulOperator.php | 10 +- src/Operators/Arithmetical/SubOperator.php | 10 +- src/Operators/Bitwise/BitwiseAndOperator.php | 10 +- src/Operators/Bitwise/BitwiseBaseOperator.php | 555 ++- src/Operators/Bitwise/BitwiseNotOperator.php | 23 +- src/Operators/Bitwise/BitwiseOrOperator.php | 10 +- src/Operators/Bitwise/BitwiseXorOperator.php | 10 +- src/Operators/Bitwise/ShiftLeftOperator.php | 10 +- src/Operators/Bitwise/ShiftRightOperator.php | 10 +- .../Comparison/ComparisonBaseOperator.php | 764 ++-- src/Operators/Comparison/EqualsOperator.php | 34 +- .../Comparison/GreaterEqualOperator.php | 22 +- src/Operators/Comparison/GreaterOperator.php | 22 +- .../Comparison/IdenticalOperator.php | 34 +- .../Comparison/LessEqualOperator.php | 22 +- src/Operators/Comparison/LessOperator.php | 22 +- .../Comparison/NotEqualsOperator.php | 40 +- .../Comparison/NotIdenticalOperator.php | 37 +- src/Operators/Logical/AndOperator.php | 53 +- src/Operators/Logical/LogicalBaseOperator.php | 373 +- src/Operators/Logical/OrOperator.php | 50 +- src/Operators/Other/CastOperator.php | 55 +- src/Operators/Other/CloneOperator.php | 21 +- src/Operators/Other/ConcatOperator.php | 71 +- src/Operators/Other/EmptyOperator.php | 17 +- src/Operators/Other/FetchOperator.php | 114 +- src/Operators/Other/InstanceOfOperator.php | 44 +- src/Operators/Other/IssetOperator.php | 75 +- src/Operators/Other/LikelyOperator.php | 20 +- src/Operators/Other/NewInstanceOperator.php | 97 +- .../Other/RangeExclusiveOperator.php | 7 +- .../Other/RangeInclusiveOperator.php | 7 +- src/Operators/Other/RequireOnceOperator.php | 29 +- src/Operators/Other/RequireOperator.php | 32 +- src/Operators/Other/ShortTernaryOperator.php | 29 +- src/Operators/Other/TernaryOperator.php | 37 +- src/Operators/Other/TypeHintOperator.php | 3 +- src/Operators/Other/TypeOfOperator.php | 5 +- src/Operators/Other/UnlikelyOperator.php | 20 +- src/Operators/Unary/MinusOperator.php | 17 +- src/Operators/Unary/NotOperator.php | 19 +- src/Optimizers/EvalExpression.php | 152 +- src/Optimizers/FunctionCall/ACosOptimizer.php | 4 +- src/Optimizers/FunctionCall/ASinOptimizer.php | 4 +- .../FunctionCall/AddslashesOptimizer.php | 15 +- .../FunctionCall/ArrayKeyExistsOptimizer.php | 14 +- .../FunctionCall/ArrayKeysOptimizer.php | 15 +- .../FunctionCall/ArrayMergeOptimizer.php | 8 +- .../FunctionCall/BasenameOptimizer.php | 15 +- .../CallUserFuncArrayOptimizer.php | 17 +- .../FunctionCall/CallUserFuncOptimizer.php | 15 +- .../FunctionCall/CamelizeOptimizer.php | 19 +- src/Optimizers/FunctionCall/CeilOptimizer.php | 10 +- .../FunctionCall/ClassExistsOptimizer.php | 18 +- .../FunctionCall/CompareMtimeOptimizer.php | 14 +- src/Optimizers/FunctionCall/CosOptimizer.php | 4 +- .../FunctionCall/CountOptimizer.php | 10 +- .../FunctionCall/Crc32Optimizer.php | 15 +- .../FunctionCall/CreateArrayOptimizer.php | 19 +- .../FunctionCall/CreateInstanceOptimizer.php | 17 +- .../CreateInstanceParamsOptimizer.php | 17 +- .../CreateSymbolTableOptimizer.php | 9 +- src/Optimizers/FunctionCall/DieOptimizer.php | 4 +- .../FunctionCall/DoublevalOptimizer.php | 10 +- .../FunctionCall/EndsWithOptimizer.php | 28 +- src/Optimizers/FunctionCall/EvalOptimizer.php | 15 +- src/Optimizers/FunctionCall/ExitOptimizer.php | 10 +- .../FunctionCall/ExplodeOptimizer.php | 31 +- .../FunctionCall/FcloseOptimizer.php | 10 +- src/Optimizers/FunctionCall/FeofOptimizer.php | 10 +- .../FunctionCall/FileExistsOptimizer.php | 14 +- .../FunctionCall/FileGetContentsOptimizer.php | 17 +- .../FunctionCall/FilePutContentsOptimizer.php | 21 +- .../FunctionCall/FilemtimeOptimizer.php | 15 +- .../FunctionCall/FloorOptimizer.php | 10 +- .../FunctionCall/FuncGetArgOptimizer.php | 10 +- .../FunctionCall/FuncGetArgsOptimizer.php | 6 +- .../FunctionCall/FuncNumArgsOptimizer.php | 4 +- .../FunctionCall/FunctionExistsOptimizer.php | 8 +- .../FunctionCall/FwriteOptimizer.php | 21 +- .../FunctionCall/GetCalledClassOptimizer.php | 15 +- .../FunctionCall/GetClassLowerOptimizer.php | 15 +- .../FunctionCall/GetClassNsOptimizer.php | 19 +- .../FunctionCall/GetClassOptimizer.php | 15 +- .../FunctionCall/GetDefinedVarsOptimizer.php | 6 +- .../FunctionCall/GetNsClassOptimizer.php | 15 +- .../FunctionCall/GettypeOptimizer.php | 15 +- .../FunctionCall/GlobalsGetOptimizer.php | 13 +- .../FunctionCall/GlobalsSetOptimizer.php | 16 +- .../FunctionCall/HashEqualsOptimizer.php | 19 +- .../FunctionCall/ImplodeOptimizer.php | 21 +- .../FunctionCall/InArrayOptimizer.php | 14 +- .../FunctionCall/InterfaceExistsOptimizer.php | 28 +- .../FunctionCall/IntvalOptimizer.php | 10 +- .../FunctionCall/IsArrayOptimizer.php | 4 +- .../FunctionCall/IsBoolOptimizer.php | 4 +- .../FunctionCall/IsCallableOptimizer.php | 10 +- .../FunctionCall/IsIntOptimizer.php | 4 +- .../FunctionCall/IsNullOptimizer.php | 4 +- .../FunctionCall/IsNumericOptimizer.php | 10 +- .../FunctionCall/IsObjectOptimizer.php | 4 +- .../FunctionCall/IsPhpVersionOptimizer.php | 39 +- .../IsPrivatePropertyOptimizer.php | 10 +- .../FunctionCall/IsResourceOptimizer.php | 4 +- .../FunctionCall/IsScalarOptimizer.php | 10 +- .../FunctionCall/IsStringOptimizer.php | 4 +- src/Optimizers/FunctionCall/JoinOptimizer.php | 4 +- .../FunctionCall/JsonDecodeOptimizer.php | 14 +- .../FunctionCall/JsonEncodeOptimizer.php | 14 +- .../FunctionCall/LdexpOptimizer.php | 10 +- .../FunctionCall/LtrimOptimizer.php | 4 +- src/Optimizers/FunctionCall/Md5Optimizer.php | 15 +- .../FunctionCall/MemstrOptimizer.php | 24 +- .../FunctionCall/MergeAppendOptimizer.php | 10 +- .../FunctionCall/MethodExistsOptimizer.php | 14 +- .../FunctionCall/MicrotimeOptimizer.php | 17 +- src/Optimizers/FunctionCall/PowOptimizer.php | 17 +- .../FunctionCall/PregMatchAllOptimizer.php | 4 +- .../FunctionCall/PregMatchOptimizer.php | 133 +- .../PrepareVirtualPathOptimizer.php | 17 +- .../FunctionCall/RoundOptimizer.php | 27 +- .../FunctionCall/RtrimOptimizer.php | 4 +- src/Optimizers/FunctionCall/SinOptimizer.php | 4 +- src/Optimizers/FunctionCall/SqrtOptimizer.php | 4 +- .../FunctionCall/StartsWithOptimizer.php | 28 +- .../FunctionCall/StrReplaceOptimizer.php | 19 +- .../FunctionCall/StripcslashesOptimizer.php | 15 +- .../FunctionCall/StripslashesOptimizer.php | 15 +- .../FunctionCall/StrlenOptimizer.php | 10 +- .../FunctionCall/StrposOptimizer.php | 25 +- .../FunctionCall/StrtokOptimizer.php | 10 +- .../FunctionCall/StrtolowerOptimizer.php | 15 +- .../FunctionCall/StrtoupperOptimizer.php | 15 +- .../FunctionCall/SubstrOptimizer.php | 25 +- src/Optimizers/FunctionCall/TanOptimizer.php | 4 +- src/Optimizers/FunctionCall/TimeOptimizer.php | 11 +- src/Optimizers/FunctionCall/TrimOptimizer.php | 17 +- .../FunctionCall/UcfirstOptimizer.php | 15 +- .../FunctionCall/UncamelizeOptimizer.php | 19 +- .../FunctionCall/UniqueKeyOptimizer.php | 17 +- .../FunctionCall/UniquePathKeyOptimizer.php | 15 +- .../FunctionCall/VarDumpOptimizer.php | 28 +- .../FunctionCall/VarExportOptimizer.php | 37 +- .../ZephirStringToHexOptimizer.php | 15 +- src/Optimizers/IsTypeOptimizerAbstract.php | 6 +- src/Optimizers/MathOptimizer.php | 12 +- src/Os.php | 4 +- src/Parser/Manager.php | 6 +- src/Parser/Parser.php | 18 +- src/Passes/CallGathererPass.php | 76 +- src/Passes/LocalContextPass.php | 319 +- src/Passes/LoopBreakPass.php | 14 +- src/Passes/MutateGathererPass.php | 97 +- src/Passes/SkipVariantInit.php | 58 +- src/Passes/StaticTypeInference.php | 177 +- src/Statements/BreakStatement.php | 4 +- src/Statements/ContinueStatement.php | 4 +- src/Statements/DeclareStatement.php | 18 +- src/Statements/DoWhileStatement.php | 11 +- src/Statements/EchoStatement.php | 49 +- src/Statements/ForStatement.php | 1090 +++--- src/Statements/IfStatement.php | 30 +- src/Statements/Let/ArrayIndex.php | 435 ++- src/Statements/Let/ArrayIndexAppend.php | 68 +- src/Statements/Let/Decr.php | 30 +- src/Statements/Let/ExportSymbol.php | 43 +- src/Statements/Let/ExportSymbolString.php | 41 +- src/Statements/Let/Incr.php | 30 +- src/Statements/Let/ObjectDynamicProperty.php | 163 +- .../Let/ObjectDynamicStringProperty.php | 155 +- src/Statements/Let/ObjectProperty.php | 97 +- src/Statements/Let/ObjectPropertyAppend.php | 221 +- .../Let/ObjectPropertyArrayIndex.php | 453 ++- .../Let/ObjectPropertyArrayIndexAppend.php | 77 +- src/Statements/Let/ObjectPropertyDecr.php | 60 +- src/Statements/Let/ObjectPropertyIncr.php | 55 +- src/Statements/Let/StaticProperty.php | 204 +- src/Statements/Let/StaticPropertyAdd.php | 174 +- src/Statements/Let/StaticPropertyAppend.php | 55 +- .../Let/StaticPropertyArrayIndex.php | 62 +- .../Let/StaticPropertyArrayIndexAppend.php | 67 +- src/Statements/Let/StaticPropertySub.php | 174 +- src/Statements/Let/Variable.php | 1029 +++-- src/Statements/Let/VariableAppend.php | 215 +- src/Statements/LetStatement.php | 72 +- src/Statements/LoopStatement.php | 17 +- src/Statements/RequireStatement.php | 4 +- src/Statements/ReturnStatement.php | 35 +- src/Statements/StatementAbstract.php | 14 +- src/Statements/SwitchStatement.php | 68 +- src/Statements/ThrowStatement.php | 45 +- src/Statements/TryCatchStatement.php | 76 +- src/Statements/UnsetStatement.php | 77 +- src/Statements/WhileStatement.php | 14 +- src/StatementsBlock.php | 125 +- src/StaticCall.php | 541 ++- src/Stubs/DocBlock.php | 24 +- src/Stubs/Generator.php | 197 +- src/Stubs/MethodDocBlock.php | 227 +- src/SymbolTable.php | 1023 ++--- src/TypeAwareInterface.php | 4 +- src/Types/AbstractType.php | 36 +- src/Types/ArrayType.php | 100 +- src/Types/CharType.php | 14 +- src/Types/DoubleType.php | 26 +- src/Types/IntType.php | 26 +- src/Types/StringType.php | 48 +- src/Types/Types.php | 276 +- src/Variable/Globals.php | 24 +- src/Variable/Variable.php | 1126 +++--- src/Zephir.php | 5 +- 339 files changed, 22832 insertions(+), 16152 deletions(-) diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 9201b51f6..fd2566c53 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -29,6 +29,7 @@ + - + - - +