Skip to content

Instantly share code, notes, and snippets.

View tacovandenbroek's full-sized avatar

Taco van den Broek tacovandenbroek

  • Procurios
  • Netherlands
View GitHub Profile
--TEST--
Bug: When an object is unserialized within the unserialize method of a Serializable implementation, its __wakeup method will be called _after_ the unserialize call is finished, making the object invalid during the unserialize call.
--FILE--
<?php
class Foo
{
public function __sleep()
{
return [];
}
/**
* @param ${TYPE_HINT} $${PARAM_NAME}
#if (${STATIC} != "static")
* @return $this
#end
*/
public ${STATIC} function set${NAME}($${PARAM_NAME})
{
#if (${STATIC} == "static")
self::$${FIELD_NAME} = $${PARAM_NAME};
@tacovandenbroek
tacovandenbroek / .bash_aliases
Last active December 12, 2015 01:28
My git helper files (.bash_aliases, .gitconfig, git_completion and custom scripts), mainly usable for my Procurios' colleagues, but may be helpful for others too
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset