Permalink
Browse files

Fixed typo on README.md file

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...
1 parent 90ada95 commit f4235a50a79c8180b148b257328fc8506174ffa4 @henriquemoody henriquemoody committed Dec 11, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
View
@@ -372,7 +372,7 @@ $select->cols(['*'])
->where('bar > :bar')
->orderBy('baz');
-$bind['bar' => '88'];
+$bind = ['bar' => '88'];
$list = $connection->fetchAll($select, $bind);
```
@@ -424,7 +424,7 @@ $insert->into('foo')
->cols(['bar', 'baz'])
->set('date', 'NOW()');
-$bind[
+$bind = [
'bar' => null,
'baz' => 'zim',
];
@@ -450,7 +450,7 @@ $update->table('foo')
->where('zim = :zim')
->orWhere('gir = :gir');
-$bind[
+$bind = [
'bar' => 'barbar',
'baz' => 99,
'zim' => 'dib',
@@ -476,7 +476,7 @@ $delete->from('foo')
->where('zim = :zim')
->orWhere('gir = :gir');
-$bind[
+$bind = [
'zim' => 'dib',
'gir' => 'doom',
];

0 comments on commit f4235a5

Please sign in to comment.