Changeset 42130 for trunk/src/wp-includes/random_compat/error_polyfill.php
- Timestamp:
- 11/08/2017 11:47:04 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/random_compat/error_polyfill.php
r35365 r42130 5 5 * 6 6 * The MIT License (MIT) 7 * 8 * Copyright (c) 2015 Paragon Initiative Enterprises7 * 8 * Copyright (c) 2015 - 2017 Paragon Initiative Enterprises 9 9 * 10 10 * Permission is hereby granted, free of charge, to any person obtaining a copy … … 36 36 37 37 if (!class_exists('TypeError', false)) { 38 class TypeError extends Error 39 { 40 38 if (is_subclass_of('Error', 'Exception')) { 39 class TypeError extends Error 40 { 41 42 } 43 } else { 44 class TypeError extends Exception 45 { 46 47 } 41 48 } 42 49 }
Note: See TracChangeset
for help on using the changeset viewer.