Skip to content

Commit

Permalink
Merge pull request #91 from weirdan/remove-allow_phpstorm_generics
Browse files Browse the repository at this point in the history
Fixes #90
  • Loading branch information
weirdan committed Feb 9, 2023
2 parents 46759bf + 1562b51 commit a3e187d
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion includes/script.php
Expand Up @@ -22,7 +22,6 @@
'memoize_method_calls': 'Memoize simple method calls',
'check_throws': 'Check for <code>@throws</code> docblock',
'restrict_return_types': 'Force return types to be as tight as possible',
'allow_phpstorm_generics': 'Allow PHPStorm generic annotations (e.g. Traversable|string[])',
'use_phpdoc_without_magic_call': 'Use PHPDoc methods and properties without magic call.',
};

Expand Down
1 change: 0 additions & 1 deletion src/OnlineChecker.php
Expand Up @@ -200,7 +200,6 @@ private static function getPsalmConfig(array $settings, bool $fix_file, string $
$config->check_for_throws_docblock = $settings['check_throws'] ?? true;
$config->remember_property_assignments_after_call = $settings['memoize_properties'] ?? true;;
$config->memoize_method_calls = $settings['memoize_method_calls'] ?? false;
$config->allow_phpstorm_generics = $settings['allow_phpstorm_generics'] ?? false;
$config->use_phpdoc_method_without_magic_or_parent = $settings['use_phpdoc_without_magic_call'] ?? false;
$config->use_phpdoc_property_without_magic_or_parent = $settings['use_phpdoc_without_magic_call'] ?? false;
$config->ignore_internal_nullable_issues = !($settings['strict_internal_functions'] ?? false);
Expand Down
1 change: 0 additions & 1 deletion views/add_code.php
Expand Up @@ -77,7 +77,6 @@
'check_throws',
'strict_internal_functions',
'restrict_return_types',
'allow_phpstorm_generics',
'use_phpdoc_without_magic_call',
];

Expand Down
5 changes: 2 additions & 3 deletions views/article.php
Expand Up @@ -53,7 +53,7 @@
<?php endif ?>
<h1><?= Muglug\Blog\AltHeadingParser::preventOrphans($article->title) ?></h1>
<p class="meta">
<?= date('F j, Y', strtotime($article->date)) ?> by <?= $article->author ?> -
<?= date('F j, Y', strtotime($article->date)) ?> by <?= $article->author ?> -
<?php if ($article->canonical): ?>
<a href="<?= $article->canonical ?>">original article</a>
<?php else: ?>
Expand Down Expand Up @@ -83,7 +83,6 @@
'memoize_method_calls': false,
'check_throws': false,
'strict_internal_functions': false,
'allow_phpstorm_generics': false,
'use_phpdoc_without_magic_call': false,
};

Expand Down Expand Up @@ -199,7 +198,7 @@ function (code_element) {
const container = document.createElement('div');
const textarea = document.createElement('textarea');
textarea.value = code_element.innerText;

container.appendChild(textarea);
container.className = 'cm_inline_container';

Expand Down
1 change: 0 additions & 1 deletion views/index.php
Expand Up @@ -57,7 +57,6 @@ function takesAnInt(int $i) {
'check_throws': false,
'strict_internal_functions': false,
'restrict_return_types': false,
'allow_phpstorm_generics': false,
'use_phpdoc_without_magic_call': false,
};
</script>
Expand Down
1 change: 0 additions & 1 deletion views/snippet.php
Expand Up @@ -51,7 +51,6 @@
'check_throws',
'strict_internal_functions',
'restrict_return_types',
'allow_phpstorm_generics',
'use_phpdoc_without_magic_call',
];

Expand Down

0 comments on commit a3e187d

Please sign in to comment.