Skip to content

Commit

Permalink
Merge pull request #10561 from Seldaek/add_param_types
Browse files Browse the repository at this point in the history
Add more param/return types
  • Loading branch information
Seldaek committed Feb 23, 2022
2 parents c9baeda + 89ce532 commit b6c1afa
Show file tree
Hide file tree
Showing 288 changed files with 1,995 additions and 2,624 deletions.
8 changes: 6 additions & 2 deletions .php-cs-fixer.php
Expand Up @@ -16,8 +16,8 @@
->in(__DIR__.'/tests')
->name('*.php')
->notPath('Fixtures')
->notPath(__DIR__.'/src/Composer/Autoload/ClassLoader.php')
->notPath(__DIR__.'/src/Composer/InstalledVersions.php')
->notPath('Composer/Autoload/ClassLoader.php')
->notPath('Composer/InstalledVersions.php')
;

$config = new PhpCsFixer\Config();
Expand Down Expand Up @@ -70,7 +70,11 @@
'combine_nested_dirname' => true,
'random_api_migration' => true,
'ternary_to_null_coalescing' => true,
'phpdoc_to_param_type' => true,
//'declare_strict_types' => true,

// TODO php 7.4 migration (one day..)
// 'phpdoc_to_property_type' => true,
])
->setUsingCache(true)
->setRiskyAllowed(true)
Expand Down
1 change: 1 addition & 0 deletions bin/compile
Expand Up @@ -2,6 +2,7 @@
<?php

$cwd = getcwd();
assert(is_string($cwd));
chdir(__DIR__.'/../');
$ts = rtrim(shell_exec('git log -n1 --pretty=%ct HEAD'));
if (!is_numeric($ts)) {
Expand Down

0 comments on commit b6c1afa

Please sign in to comment.