Top "Redeclaration" questions

Use this tag for questions related to redeclaration, such as overwriting a function.

Is it possible to overwrite a function in PHP

Can you declare a function like this... function ihatefooexamples(){ return "boo-foo!"; }; And then redeclare it somewhat like this... if ($_GET[…

php function redeclaration
Laravel 5.0, Cannot redeclare class App\models\Category

I recently upgraded my project from laravel 4.2 to laravel 5.0 and have been facing several errors. I didn't define any namespaces …

model runtime-error laravel-5 redeclaration
How solve compiler enum redeclaration conflict

Consider the following C++ enumerations: enum Identity { UNKNOWN = 1, CHECKED = 2, UNCHECKED = 3 }; enum Status { UNKNOWN = 0, PENDING = 1, APPROVED = 2, UNAPPROVED = 3 }; The Compiler conflicted the …

c++ enums compiler-errors enumeration redeclaration
Type mismatch in Redeclaration

I have been able to remove almost all errors except these 5 errors in this C program (too long to paste …

c type-mismatch redeclaration
PHP autoloading: Preventing 'cannot redeclare <class>' in all constellations?

Question Is there a way I can make PHP ignore re-declarations of classes rather than barf up a FATAL ERROR? …

php autoload fatal-error redeclaration
Xcode : Invalid redeclaration of 'ViewController'

I just finished my app and it was working fine, but all of a sudden after pressing File -> …

ios swift xcode uiviewcontroller redeclaration