update annotations

This commit is contained in:
Marcello 2022-08-06 10:48:24 +02:00
parent 046b3281e1
commit 4d414e5f95
21 changed files with 57 additions and 57 deletions

View file

@ -37,7 +37,7 @@ require "autoload.php";
# other code
```
**NOTE**: will fuck up if namespaces exists.
> **Note**: will fuck up if namespaces exists.
### Multiple Autoloading
@ -81,7 +81,7 @@ Composer will create:
In alternative `composer require <lib>` will add the library to the project and create a `composer.json` if missing.
**NOTE**: to ignore the php version use `composer <command> --ignore-platform-reqs`
> **Note**: to ignore the php version use `composer <command> --ignore-platform-reqs`
### Updating Dependencies

View file

@ -62,7 +62,7 @@ $stmt->execute();
By default PDO converts all results into strings since it is a generic driver for multiple databases.
Its possible to disable this behaviour setting `PDO::ATTR_STRINGIFY_FETCHES` and `PDO::ATTR_EMULATE_PREPARES` as `false`.
**NOTE**: `FETCH_OBJ` abd `FETCH_CLASS` return classes and don't have this behaviour.
> **Note**: `FETCH_OBJ` abd `FETCH_CLASS` return classes and don't have this behaviour.
```php
pdo->setAttribute()
@ -99,4 +99,4 @@ $result->finalize(); // close result set, recommended calling before another ex
$records = $results->fetchArray(SQLITE3_ASSOC); // extract records as array (false if no results)
```
**NOTE**: Result set objects retrieved by calling `SQLite3Stmt::execute()` on the same statement object are not independent, but rather share the same underlying structure. Therefore it is recommended to call `SQLite3Result::finalize()`, before calling `SQLite3Stmt::execute()` on the same statement object again.
> **Note**: Result set objects retrieved by calling `SQLite3Stmt::execute()` on the same statement object are not independent, but rather share the same underlying structure. Therefore it is recommended to call `SQLite3Result::finalize()`, before calling `SQLite3Stmt::execute()` on the same statement object again.

View file

@ -75,4 +75,4 @@ $container = $builder->build(); // construct container
$cart = $container->get(Foo::class); // Instantiate & Inject
```
**NOTE**: `get("className")` requires the explicit definition of `className` in the config file. `get(ClassName::class)` does not.
> **Note**: `get("className")` requires the explicit definition of `className` in the config file. `get(ClassName::class)` does not.

View file

@ -58,7 +58,7 @@ Variables in the template are created through an associative array `key => value
It's possible to create a layout (a model) for a group of pages to make that identical save for the contents.
In a layout it's possible to create a section called **content** that identifies content that can be specified at runtime.
**NOTE**: Since only the template has the data passed eventual loops have to be done there.
> **Note**: Since only the template has the data passed eventual loops have to be done there.
```php
# index.php

View file

@ -153,7 +153,7 @@ class ClassTest extends TestCase
}
```
**NOTE**: `setUp()` and `tearDown()` are called *before* and *after* each test method.
> **Note**: `setUp()` and `tearDown()` are called *before* and *after* each test method.
### Data Provider