Skip to content

Instantly share code, notes, and snippets.

@Fleshgrinder
Created February 19, 2017 13:54
Show Gist options
  • Save Fleshgrinder/b5f6f60e883960af77a0c1bb5abc1c66 to your computer and use it in GitHub Desktop.
Save Fleshgrinder/b5f6f60e883960af77a0c1bb5abc1c66 to your computer and use it in GitHub Desktop.
The Case of the Null Reference: Code Listing 2
<?php
final class Main {
public static function f(int $x): int {
return $x + 42;
}
}
Main::f(null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment