Skip to content

Commit 42bfddd

Browse files
committed
Removing anything referring to the phar
1 parent 8eac52f commit 42bfddd

File tree

6 files changed

+3
-62
lines changed

6 files changed

+3
-62
lines changed

.circleci/config.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ version: 2.1
22
defaults: &defaults
33
docker:
44
- image: circleci/php:7.2-cli
5-
environment:
6-
BOX_VERSION: 3.8.4
75
working_directory: ~/repo
86
aliases:
97
- &composer-cache
@@ -150,7 +148,7 @@ jobs:
150148
- require-contrib:
151149
project: drupal/ctools:3.x-dev
152150
- run:
153-
name: Phar - Run against a module
151+
name: Run against a module
154152
command: |
155153
drupal-check -vvv /tmp/drupal/web/modules/contrib/ctools || if (($? == 255)); then false; else true; fi
156154
test_global_require_with_drush:
@@ -182,7 +180,7 @@ jobs:
182180
command: |
183181
cp -r ~/repo/tests/fixtures/contained_not_initialized /tmp/drupal/web/modules
184182
- run:
185-
name: Phar - Run against a file
183+
name: Run against a file
186184
command: |
187185
drupal-check -vvv /tmp/drupal/web/modules/contained_not_initialized -vvv
188186
workflows:

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ assignees: ''
1111

1212
<!-- Please specify the way you have drupal-check installed, as it greatly helps identify certain bugs. -->
1313

14-
drupal-check is installed using the phar
1514
drupal-check is installed globally via Composer
1615
drupal-check is installed globally using consolidation/cgr
1716
drupal-check is installed as a dependency to my project

.github/RELEASE_NOTES_TEMPLATE.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Composer
22
/vendor/
33
/.idea
4-
/*.phar
54
.circleci/config_local.yml

.travis.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/Command/CheckCommand.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -176,17 +176,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
176176
return 1;
177177
}
178178

179-
$pharPath = \Phar::running();
180-
if ($pharPath !== '') {
181-
// Running in packaged Phar archive.
182-
$output->writeln('<comment>Assumed running as Phar</comment>', OutputInterface::VERBOSITY_DEBUG);
183-
$phpstanBin = \realpath('vendor/phpstan/phpstan/phpstan.phar');
184-
$configuration_data['parameters']['bootstrapFiles'] = [\realpath($pharPath . '/error-bootstrap.php')];
185-
$configuration_data['includes'] = [
186-
\realpath($pharPath . '/vendor/phpstan/phpstan-deprecation-rules/rules.neon'),
187-
\realpath($pharPath . '/vendor/mglaman/phpstan-drupal/extension.neon'),
188-
];
189-
} elseif (file_exists(__DIR__ . '/../../vendor/autoload.php')) {
179+
if (file_exists(__DIR__ . '/../../vendor/autoload.php')) {
190180
// Running as a project dependency.
191181
$output->writeln('<comment>Assumed running as local dependency</comment>', OutputInterface::VERBOSITY_DEBUG);
192182
$phpstanBin = \realpath(__DIR__ . '/../../vendor/phpstan/phpstan/phpstan.phar');

0 commit comments

Comments
 (0)