remove nette packages from dev requirements and replace with 2 stub classes (#6372)

This commit is contained in:
Tomas Votruba 2021-05-06 15:42:06 +02:00 committed by GitHub
parent dde5458d5d
commit 71ae038df9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 39 additions and 4 deletions

View File

@ -69,9 +69,6 @@
"webmozart/assert": "^1.10"
},
"require-dev": {
"nette/application": "^3.0.7",
"nette/di": "^3.0",
"nette/forms": "^3.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-nette": "^0.12.16",
"phpunit/phpunit": "^9.5",
@ -118,7 +115,6 @@
"files": [
"stubs/Doctrine/Persistence/ObjectManager.php",
"stubs/Doctrine/Common/Persistence/ObjectManager.php",
"vendor/nette/forms/src/Forms/Controls/SubmitButton.php",
"rules-tests/Transform/Rector/FuncCall/FuncCallToMethodCallRector/Source/some_view_function.php",
"rules-tests/TypeDeclaration/Rector/FunctionLike/ReturnTypeDeclarationRector/Source/MyBar.php",
"rules-tests/TypeDeclaration/Rector/Property/CompleteVarDocTypePropertyRector/Source/EventDispatcher.php"

View File

@ -0,0 +1,13 @@
<?php
declare(strict_types=1);
namespace Nette\Application\UI;
if (class_exists('Nette\Application\UI\Form')) {
return;
}
final class Form
{
}

View File

@ -0,0 +1,13 @@
<?php
declare(strict_types=1);
namespace Nette\Application\UI;
if (class_exists('Nette\Application\UI\Presenter')) {
return;
}
final class Presenter
{
}

View File

@ -0,0 +1,13 @@
<?php
declare(strict_types=1);
namespace Nette\DI;
if (class_exists('Nette\DI\CompilerExtension')) {
return;
}
class CompilerExtension
{
}