Skip to content

Instantly share code, notes, and snippets.

Avatar

Josh Butts jimbojsb

View GitHub Profile
View scalar-type-signatures.php
<?php
// coercive types, as per PersonFactory author's specification
class ElePHPant {
public $name, $age, $cuteness, $evil;
public function __construct(~string $name, ~int $age, ~float $cuteness, ~bool $evil) {
$this->name = $name;
$this->age = $age;
$this->cuteness = $cuteness;
$this->evil = $evil;
View Git Bash Prompt
PS1='[\u@\h \w\[\033[32m\]$(__git_ps1)\[\033[0m\]]$ '
You can’t perform that action at this time.