Skip to content

Commit 3533ad5

Browse files
committed
Remove phpstan hack
1 parent d79792f commit 3533ad5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/PHPFUI/InstaDoc/Controller.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,19 +158,16 @@ public function display(array $classPagesToShow = Controller::VALID_CLASS_PAGES,
158158

159159
$div = new \PHPFUI\GridX();
160160
$div->add($section->getBreadCrumbs($fullClassName));
161-
162-
$cell = new \PHPFUI\Cell();
163161
$div->add('   ');
164162
$icon = new \PHPFUI\FAIcon('far', 'clipboard');
165163
$icon->setToolTip('Send Constructor to Clipboard');
164+
$div->add($icon);
166165
$callout = new \PHPFUI\Callout('success');
167166
$callout->add('Copied!');
168167
$callout->addClass('small');
169168
$parameters = $this->getConstructorParameters($fullClassName);
170169
$parameters = \str_replace("\n", '', $parameters);
171-
// @phpstan-ignore-next-line hack for now
172170
$page->addCopyToClipboard("new \\{$fullClassName}({$parameters});", $icon, $callout);
173-
$page->setDebug(1);
174171
$div->add($callout);
175172
$mainColumn->add($div);
176173

0 commit comments

Comments
 (0)