Skip to content

Commit

Permalink
Update packages (#436)
Browse files Browse the repository at this point in the history
 - roave/security-advisories updated from dev-latest@9f1d9b2 to dev-latest@b33a18b
   See changes: Roave/SecurityAdvisories@9f1d9b2...b33a18b

 - shipmonk/composer-dependency-analyser updated from 1.7.0 to 1.8.1 minor
   See changes: shipmonk-rnd/[email protected]
   Release notes: https://github.com/shipmonk-rnd/composer-dependency-analyser/releases/tag/1.8.1

Plus changes required by the dependency analyzer now checking PHP extensions as well.
  • Loading branch information
spaze authored Nov 22, 2024
2 parents 266487d + f89c2fc commit 04b4b2c
Show file tree
Hide file tree
Showing 18 changed files with 669 additions and 215 deletions.
11 changes: 11 additions & 0 deletions app/composer-dependency-analyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
use ShipMonk\ComposerDependencyAnalyser\Config\ErrorType;

return (new Configuration())
->setFileExtensions(['php', 'phpt'])
->addPathToScan(__DIR__ . '/tests', true)

// Add classes from services.neon and extensions.neon
->addForceUsedSymbols(DiServices::getAllClasses())

Expand All @@ -15,6 +18,14 @@
// It's used, believe me
->ignoreErrorsOnPackage('latte/latte', [ErrorType::UNUSED_DEPENDENCY])

->ignoreErrorsOnExtensions([
'ext-gd', // Used by e.g. Nette\Http\FileUpload::toImage which is used by MichalSpacekCz\Media\VideoThumbnails::validateUpload()
'ext-pcntl', // Used by latte/latte Latte\Tools\Linter and nette/tester's Tester\Runner\CliTester
], [ErrorType::UNUSED_DEPENDENCY])

// shipmonk/composer-dependency-analyser#203
->ignoreErrorsOnExtensionAndPath('ext-session', 'src/EasterEgg/PhpInfoCookieSanitization.php', [ErrorType::SHADOW_DEPENDENCY])

// TestCaseRunner is used only in tests
->ignoreErrorsOnPackageAndPath('nette/tester', __DIR__ . '/src/Test/TestCaseRunner.php', [ErrorType::DEV_DEPENDENCY_IN_PROD])
;
4 changes: 1 addition & 3 deletions app/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@
"ext-fileinfo": "*",
"ext-gd": "*",
"ext-intl": "*",
"ext-libxml": "*",
"ext-mbstring": "*",
"ext-openssl": "*",
"ext-pcntl": "*",
"ext-pdo": "*",
"ext-simplexml": "*",
"ext-sodium": "*",
"composer/pcre": "^3.3.1",
"contributte/translation": "^2.0",
"latte/latte": "^3.0.3",
Expand Down Expand Up @@ -56,6 +53,7 @@
"symfony/polyfill-mbstring": "*"
},
"require-dev": {
"ext-simplexml": "*",
"jetbrains/phpstorm-attributes": "^1.0",
"nette/tester": "^2.4.3",
"php-parallel-lint/php-console-highlighter": "^1.0",
Expand Down
61 changes: 30 additions & 31 deletions app/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions app/psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
<extension name="php"/>
<extension name="phpt"/>
</fileExtensions>
<enableExtensions>
<extension name="simplexml"/>
</enableExtensions>
<universalObjectCrates>
<class name="Nette\Bridges\ApplicationLatte\DefaultTemplate"/>
<class name="Nette\Database\Row"/>
Expand Down
54 changes: 27 additions & 27 deletions app/vendor/composer/installed.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions app/vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@
'roave/security-advisories' => array(
'pretty_version' => 'dev-latest',
'version' => 'dev-latest',
'reference' => '9f1d9b2460cdd0422e8cfd58763bf3156ad7f487',
'reference' => 'b33a18b5d222c63472a4b41f6fa3e15e591c9595',
'type' => 'metapackage',
'install_path' => null,
'aliases' => array(
Expand All @@ -412,9 +412,9 @@
'dev_requirement' => true,
),
'shipmonk/composer-dependency-analyser' => array(
'pretty_version' => '1.7.0',
'version' => '1.7.0.0',
'reference' => 'bca862b2830a453734aee048eb0cdab82e5c9da3',
'pretty_version' => '1.8.1',
'version' => '1.8.1.0',
'reference' => '0acd9d94be4d9397055ff012d0abf2ae88072e99',
'type' => 'library',
'install_path' => __DIR__ . '/../shipmonk/composer-dependency-analyser',
'aliases' => array(),
Expand Down
Loading

0 comments on commit 04b4b2c

Please sign in to comment.