-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
358 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?php | ||
|
||
return [ | ||
'pretend_newer_core_functions_exist' => false, | ||
'guess_unknown_parameter_type_using_default' => true, | ||
'allow_overriding_vague_return_types' => true, | ||
'infer_default_properties_in_construct' => true, | ||
'enable_extended_internal_return_type_plugins' => true, | ||
'dead_code_detection' => true, | ||
'unused_variable_detection' => true, | ||
'force_tracking_references' => true, | ||
'redundant_condition_detection' => true, | ||
'error_prone_truthy_condition_detection' => true, | ||
'warn_about_redundant_use_namespaced_class' => true, | ||
'simplify_ast' => true, | ||
'generic_types_enabled' => true, | ||
'exclude_file_regex' => '@^vendor/phalcon/ide-stubs/|vendor/.*/Test.php@', | ||
'enable_include_path_checks' => true, | ||
'directory_list' => [ | ||
'src', | ||
'vendor', | ||
// @todo reactivate | ||
//'test', | ||
], | ||
'enable_class_alias_support' => true, | ||
'analyzed_file_extensions' => ['php'], | ||
'exclude_analysis_directory_list' => [ | ||
'vendor/' | ||
], | ||
'skip_slow_php_options_warning' => false, | ||
'ignore_undeclared_functions_with_known_signatures' => false, | ||
'plugin_config' => [ | ||
'has_phpdoc_check_duplicates' => true, | ||
'empty_statement_list_ignore_todos' => true, | ||
'infer_pure_methods' => true, | ||
'regex_warn_if_newline_allowed_at_end' => true, | ||
], | ||
'suppress_issue_types' => [ | ||
'PhanPluginRedundantReturnComment', | ||
'PhanPluginRedundantMethodComment', | ||
'PhanPluginRedundantClosureComment', | ||
'PhanUnreferencedPublicMethod', | ||
'PhanPluginDescriptionlessCommentOnPrivateProperty', | ||
'PhanPluginCanUsePHP71Void', | ||
'PhanUnreferencedClosure', | ||
'PhanPluginPossiblyStaticPrivateMethod', | ||
'PhanPluginPossiblyStaticClosure', | ||
//@ todo reactivate | ||
|
||
], | ||
'plugins' => [ | ||
'AlwaysReturnPlugin', | ||
'DollarDollarPlugin', | ||
'UnreachableCodePlugin', | ||
'DuplicateArrayKeyPlugin', | ||
'PrintfCheckerPlugin', | ||
'PHPUnitAssertionPlugin', | ||
'UseReturnValuePlugin', | ||
'UnknownElementTypePlugin', | ||
'DuplicateExpressionPlugin', | ||
'WhitespacePlugin', | ||
'InlineHTMLPlugin', | ||
'PossiblyStaticMethodPlugin', | ||
'HasPHPDocPlugin', | ||
'PHPDocToRealTypesPlugin', | ||
'PHPDocRedundantPlugin', | ||
'PreferNamespaceUsePlugin', | ||
'EmptyStatementListPlugin', | ||
'EmptyMethodAndFunctionPlugin', | ||
'LoopVariableReusePlugin', | ||
'RedundantAssignmentPlugin', | ||
'StrictComparisonPlugin', | ||
'StrictLiteralComparisonPlugin', | ||
'ShortArrayPlugin', | ||
'SimplifyExpressionPlugin', | ||
'RemoveDebugStatementPlugin', | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
#!/bin/sh | ||
|
||
mkdir tmp && \ | ||
mv composer.json tmp/ && \ | ||
composer require --dev techpivot/phalcon-ci-installer && \ | ||
vendor/bin/install-phalcon.sh 3.2.x && \ | ||
|
||
git clone git://github.com/phalcon/php-zephir-parser.git && \ | ||
cd php-zephir-parser && \ | ||
phpize && \ | ||
./configure && \ | ||
make && \ | ||
make install && \ | ||
echo "extension = zephir_parser.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini &&\ | ||
cd .. && \ | ||
|
||
composer init --name tmp/tmp && \ | ||
composer config repositories.phalcon-zephir-update '{"type":"vcs","url":"https://github.com/idrinth/phalcon-ci-installer","no-api":true}' && \ | ||
composer require --dev techpivot/phalcon-ci-installer:dev-patch-1 && \ | ||
vendor/bin/install-phalcon.sh 4.0.x && \ | ||
|
||
rm composer.lock && \ | ||
rm composer.json && \ | ||
mv tmp/composer.json ./ && \ | ||
rmdir tmp | ||
rmdir tmp && \ | ||
rm -rf php-zephir-parser |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.