Skip to content

Commit

Permalink
[TASK] Remove explicit phpstan dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbelasichon committed Nov 5, 2020
1 parent 1bf5d31 commit 9472af3
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"require": {
"php": "^7.2",
"nette/utils": "^3.1",
"phpstan/phpstan": "^0.12.42",
"rector/rector": "0.8.48"
},
"require-dev": {
Expand Down
14 changes: 14 additions & 0 deletions stubs/TYPO3Fluid/Core/ViewHelper/AbstractTagBasedViewHelper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
declare(strict_types=1);


namespace TYPO3Fluid\Fluid\Core\ViewHelper;

if (class_exists(AbstractTagBasedViewHelper::class)) {
return;
}

abstract class AbstractTagBasedViewHelper extends AbstractViewHelper
{

}
7 changes: 7 additions & 0 deletions stubs/TYPO3Fluid/Core/ViewHelper/AbstractViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@

namespace TYPO3Fluid\Fluid\Core\ViewHelper;

use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;

if (class_exists(AbstractViewHelper::class)) {
return;
}

class AbstractViewHelper
{
/**
* @var RenderingContextInterface
*/
protected $renderingContext;

public function initializeArguments(): void
{

Expand Down
12 changes: 12 additions & 0 deletions stubs/TYPO3Fluid/Rendering/RenderingContextInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace TYPO3Fluid\Fluid\Core\Rendering;

if (class_exists(RenderingContextInterface::class)) {
return;
}

interface RenderingContextInterface
{

}

0 comments on commit 9472af3

Please sign in to comment.