Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions appendices/migration74/new-features.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ class A
class B extends A
{
// Fatal error: Could not check compatibility between B::method():C and
// A::method(): A, because class С is not available
public function method(): С {}
// A::method(): A, because class C is not available
public function method(): C {}
}

class C extends B {}
Expand Down
2 changes: 1 addition & 1 deletion reference/ev/evperiodic/construct.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
// Tick each 10.5 seconds

function reschedule_cb ($watcher, $now) {
return $now + (10.5. - fmod($now, 10.5));
return $now + (10.5 - fmod($now, 10.5));
}

$w = new EvPeriodic(0., 0., "reschedule_cb", function ($w, $revents) {
Expand Down
2 changes: 1 addition & 1 deletion reference/imagick/imagick/mergeimagelayers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<?php
function mergeImageLayers($layerMethodType, $imagePath1, $imagePath2) {

$imagick = new \Imagick(realpath($imagePath));
$imagick = new \Imagick(realpath($imagePath1));

$imagick2 = new \Imagick(realpath($imagePath2));
$imagick->addImage($imagick2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
$manager = new MongoDB\Driver\Manager;

$bulk = new MongoDB\Driver\BulkWriteCommand;
$bulk->replaceOne('db.coll', ['x' => 1], ['x' => 1, 'y' = 2]);
$bulk->replaceOne('db.coll', ['x' => 1], ['x' => 1, 'y' => 2]);

$result = $manager->executeBulkWriteCommand($bulk);

Expand Down
2 changes: 1 addition & 1 deletion reference/rar/rarentry/getunpackedsize.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ $rar_file = rar_open('example.rar') or die("Failed to open Rar archive");

$entry = rar_entry_get($rar_file, 'Dir/file.txt') or die("Failed to find such entry");

echo "Unpacked size of " . $entry->getName() . " = " . $entry->getPackedSize() . " bytes";
echo "Unpacked size of " . $entry->getName() . " = " . $entry->getUnpackedSize() . " bytes";

?>
]]>
Expand Down
2 changes: 1 addition & 1 deletion reference/solr/solrdismaxquery/setqueryalt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<![CDATA[
<?php

$dismaxQuery = new DisMaxQuery();
$dismaxQuery = new SolrDisMaxQuery();
$dismaxQuery->setQueryAlt('*:*');

?>
Expand Down
2 changes: 1 addition & 1 deletion reference/spl/splfileinfo/getgroup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<![CDATA[
<?php
$info = new SplFileInfo('example.jpg');
echo info->getFilename() . ' belongs to group id ' . $info->getGroup() . "\n";
echo $info->getFilename() . ' belongs to group id ' . $info->getGroup() . "\n";
print_r(posix_getgrgid($info->getGroup()));
?>
]]>
Expand Down
2 changes: 1 addition & 1 deletion reference/spl/splfileinfo/getowner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<![CDATA[
<?php
$info = new SplFileInfo('example.jpg');
echo info->getFilename() . ' belongs to owner id ' . $info->getOwner() . "\n";
echo $info->getFilename() . ' belongs to owner id ' . $info->getOwner() . "\n";
print_r(posix_getpwuid($info->getOwner()));
?>
]]>
Expand Down
2 changes: 1 addition & 1 deletion reference/spl/splfileinfo/getsize.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<![CDATA[
<?php
$info = new SplFileInfo('example.jpg');
echo $fileinfo->getFilename() . " " . $fileinfo->getSize();
echo $info->getFilename() . " " . $info->getSize();
?>
]]>
</programlisting>
Expand Down
2 changes: 1 addition & 1 deletion reference/uri/uri/rfc3986/uri/parse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ $uri = \Uri\Rfc3986\Uri::parse("https://example.com");
if ($uri !== null) {
echo "Valid URI: " . $uri->toString();
} else {
echo "Invalid URI"
echo "Invalid URI";
}
?>
]]>
Expand Down
2 changes: 1 addition & 1 deletion reference/uri/uri/whatwg/url/parse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ $url = \Uri\WhatWg\Url::parse("https://example.com");
if ($url !== null) {
echo "Valid URL: " . $url->toAsciiString();
} else {
echo "Invalid URL"
echo "Invalid URL";
}
?>
]]>
Expand Down
2 changes: 1 addition & 1 deletion reference/xattr/functions/xattr-list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ foreach ($root_attributes as $attr_name) {
}

echo "\n User attributes: \n";
foreach ($attributes as $attr_name) {
foreach ($user_attributes as $attr_name) {
printf("%s\n", $attr_name);
}

Expand Down
2 changes: 1 addition & 1 deletion reference/xlswriter/xlsx-kernel/auto-filter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ $config = [

$fileObject = new \Vtiful\Kernel\Excel($config);

$file = $excel->fileName('test.xlsx')
$file = $fileObject->fileName('test.xlsx')
->header(['name', 'age'])
->data($data)
->autoFilter('A1:B11') // auto filter
Expand Down
2 changes: 1 addition & 1 deletion reference/xlswriter/xlsx-kernel/const-memory.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ $config = [

$fileObject = new \Vtiful\Kernel\Excel($config);

$file = $instance->constMemory('tutorial.xlsx', 'sheet');
$file = $fileObject->constMemory('tutorial.xlsx', 'sheet');
?>
]]>
</programlisting>
Expand Down
2 changes: 1 addition & 1 deletion reference/xlswriter/xlsx-kernel/file-name.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ $config = [

$fileObject = new \Vtiful\Kernel\Excel($config);

$file = $instance->fileName('tutorial.xlsx', 'sheet');
$file = $fileObject->fileName('tutorial.xlsx', 'sheet');
?>
]]>
</programlisting>
Expand Down
2 changes: 1 addition & 1 deletion reference/xlswriter/xlsx-kernel/insert-text.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ for ($index = 0; $index < 10; $index++) {
$file->insertText($index+1, 1, 10000, '#,##0');
}

$textFile->output();
$file->output();
]]>
</programlisting>
</example>
Expand Down
2 changes: 1 addition & 1 deletion reference/yac/yac/add.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<title>Make sure the item is stored</title>
<programlisting role="php">
<![CDATA[
while(!$yac->set("key", "vale));
while(!$yac->set("key", "value"));
]]>
</programlisting>
</example>
Expand Down
2 changes: 1 addition & 1 deletion reference/yaf/yaf_route_rewrite/assemble.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<title><function>Yaf_Route_Rewrite::assemble</function>example</title>
<programlisting role="php">
<![CDATA[
router = new Yaf_Router();
$router = new Yaf_Router();

$route = new Yaf_Route_Rewrite(
"/product/:name/:id/*",
Expand Down