Skip to content

Commit 9f66fed

Browse files
committed
fix dd
1 parent e37398e commit 9f66fed

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

index.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@
1111
exit(1);
1212
}
1313

14-
function dd(...$args)
15-
{
16-
if (count($args) === 1) {
17-
return $args[0];
18-
}
19-
20-
return $args;
21-
}
22-
2314
$loader = Loader::load($arguments[1]);
2415

2516
if ($loader === null) {

src/Loaders/BaseLoader.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ public function init(): void
2525
]);
2626
$config->setVerbosity(Configuration::VERBOSITY_QUIET);
2727
$config->setHistoryFile(defined('PHP_WINDOWS_VERSION_BUILD') ? 'null' : '/dev/null');
28-
$config->setRawOutput(false);
29-
if (getenv('KUBERNETES_SERVICE_HOST') || defined('PHP_WINDOWS_VERSION_BUILD')) {
30-
$config->setUsePcntl(false);
31-
}
28+
$config->setUsePcntl(false);
3229

3330
if (class_exists('Illuminate\Support\Collection') && class_exists('Laravel\Tinker\TinkerCaster')) {
3431
$config->getPresenter()->addCasters([

src/Tinker.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ public function execute(string $phpCode): string
3131

3232
$this->shell->addInput($phpCode);
3333

34-
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
35-
$this->shell->addInput("\necho('TWEAKPHP_END'); exit();");
36-
}
34+
$this->shell->addInput("\necho('TWEAKPHP_END'); exit();");
3735

3836
$closure = new ExecutionLoopClosure($this->shell);
3937

0 commit comments

Comments
 (0)