Skip to content

Instantly share code, notes, and snippets.

@mihahribar
Created July 17, 2012 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mihahribar/3126255 to your computer and use it in GitHub Desktop.
Save mihahribar/3126255 to your computer and use it in GitHub Desktop.
Warning example
<?php
class Person
{
function assimilate($alwaysAskPermission = true)
{
// code
}
}
class Borg extends Person
{
function assimilate()
{
// we are the borg, resistance is futile
}
}
// outputs a warning: Strict standards: Declaration of Borg::assimilate() should be compatible with Person::assimilate($alwaysAskPermission = true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment