Skip to content

Commit

Permalink
Fixed typo on README.md file
Browse files Browse the repository at this point in the history
Some definitions of the variable "$bind" were defined like:

    $bind[...]

and not as:

    $bind = [...]

like the the defined array syntax after PHP 5.4
  • Loading branch information
henriquemoody committed Dec 11, 2012
1 parent 90ada95 commit f4235a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -372,7 +372,7 @@ $select->cols(['*'])
->where('bar > :bar')
->orderBy('baz');

$bind['bar' => '88'];
$bind = ['bar' => '88'];

$list = $connection->fetchAll($select, $bind);
```
Expand Down Expand Up @@ -424,7 +424,7 @@ $insert->into('foo')
->cols(['bar', 'baz'])
->set('date', 'NOW()');

$bind[
$bind = [
'bar' => null,
'baz' => 'zim',
];
Expand All @@ -450,7 +450,7 @@ $update->table('foo')
->where('zim = :zim')
->orWhere('gir = :gir');

$bind[
$bind = [
'bar' => 'barbar',
'baz' => 99,
'zim' => 'dib',
Expand All @@ -476,7 +476,7 @@ $delete->from('foo')
->where('zim = :zim')
->orWhere('gir = :gir');

$bind[
$bind = [
'zim' => 'dib',
'gir' => 'doom',
];
Expand Down

0 comments on commit f4235a5

Please sign in to comment.