mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-07-31 12:00:34 +02:00
Correct syntax error declaring final method
This commit is contained in:
@@ -367,10 +367,11 @@ Classes are insantiated with the ```new``` keyword. Functions are referred to as
|
||||
|
||||
```php
|
||||
class MyClass {
|
||||
function myFunction() {
|
||||
function myFunction()
|
||||
{
|
||||
}
|
||||
|
||||
function function youCannotOverrideMe()
|
||||
final function youCannotOverrideMe()
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user