Skip to content

Instantly share code, notes, and snippets.

View tomschlick's full-sized avatar

Tom Schlick tomschlick

View GitHub Profile
PidFile = /var/run/hhvm.pid
Eval {
Jit = true
JitWarmupRequests = 3
}
Log {
Level = Debug
Header = true
<?php
// other content
'providers' => array(
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
'Illuminate\Auth\AuthServiceProvider',
'Illuminate\Cache\CacheServiceProvider',
'Illuminate\Foundation\Providers\CommandCreatorServiceProvider',

Keybase proof

I hereby claim:

  • I am tomschlick on github.
  • I am tomschlick (https://keybase.io/tomschlick) on keybase.
  • I have a public key whose fingerprint is 5229 1B39 A2EE 92B4 9651 A0C2 1620 7AFA 1D44 7FF8

To claim this, I am signing this object:

<?php
trait NullableDate
{
/**
* Transform the date for display, add timezone if available
*
* @param string $field_name
*
* @param string $format
name: 'php-cs-fixer'
on:
- push
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@tomschlick
tomschlick / ReplacePrefixedFunctionTestWithAttributeRector.php
Created October 16, 2024 14:23
Replace phpunit test_* method prefix with #[Test] attribute
<?php
declare(strict_types=1);
namespace App\Rector;
use PhpParser\Node;
use PhpParser\Node\Stmt\ClassMethod;
use PHPUnit\Framework\Attributes\Test;
use Rector\Core\Rector\AbstractRector;