fix stub loading

This commit is contained in:
TomasVotruba 2021-05-06 16:11:59 +02:00
parent 71ae038df9
commit de37a73aad
4 changed files with 17 additions and 2 deletions

View File

@ -104,6 +104,7 @@
},
"classmap": [
"stubs/Annotations",
"stubs/Nette",
"rules-tests/Autodiscovery/Rector/Class_/MoveServicesBySuffixToDirectoryRector/Expected",
"rules-tests/Autodiscovery/Rector/Interface_/MoveInterfacesToContractNamespaceDirectoryRector/Expected",
"rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Source",

View File

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

View File

@ -8,6 +8,6 @@ if (class_exists('Nette\Application\UI\Form')) {
return;
}
final class Form
class Form
{
}

View File

@ -8,6 +8,6 @@ if (class_exists('Nette\Application\UI\Presenter')) {
return;
}
final class Presenter
class Presenter
{
}