Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
178 commits
Select commit Hold shift + click to select a range
5e147c4
WIP Do Not Install
oleibman Feb 6, 2024
446c464
Merge branch 'master' into wordunimplemented2
oleibman Feb 6, 2024
0ac841e
Update Html.php
oleibman Feb 7, 2024
39fbabc
Load Html as Html Not Xml
oleibman May 9, 2024
cf1fd2a
Permit Some Backwards Compatibility
oleibman May 10, 2024
e0e98dd
Merge branch 'master' into wordunimplemented2
oleibman Aug 9, 2024
14cad6a
Merge branch 'master' into wordunimplemented2
oleibman Aug 16, 2024
2f799c2
Phpstan False Positives
oleibman Aug 16, 2024
d9120c7
Improve Resolution of Phpstan Problem
oleibman Aug 16, 2024
41fabcc
Merge branch 'master' into wordunimplemented2
oleibman Sep 3, 2024
920f305
Merge branch 'master' into wordunimplemented2
oleibman Sep 4, 2024
1093a3b
Update Sample_45_RTLTitles.php
oleibman Sep 4, 2024
74918d0
Update Sample_45_RTLTitles.php
oleibman Sep 4, 2024
28b1b08
Update Sample_45_RTLTitles.php
oleibman Sep 4, 2024
90ee6a9
Merge branch 'master' into wordunimplemented2
oleibman Sep 5, 2024
63e9fd1
Merge branch 'master' into wordunimplemented2
oleibman Sep 13, 2024
86b939f
Merge branch 'master' into wordunimplemented2
oleibman Sep 13, 2024
8b01436
Merge branch 'master' into wordunimplemented2
oleibman Sep 14, 2024
91d95f1
Merge branch 'master' into wordunimplemented2
oleibman Oct 14, 2024
32a7350
Update HTMLTest.php
oleibman Jan 9, 2025
69faae1
Move One Test to Avoid Merge Conflict
oleibman Jan 9, 2025
e9316c0
Try to Correct Merge Conflicts in Writer/HTML/FontTest
oleibman Jan 9, 2025
3dd5da5
Trying FontTest One More Time Before Giving Up
oleibman Jan 10, 2025
1bcee8e
Merge branch 'master' into wordunimplemented2
oleibman Jan 10, 2025
8e6726c
Try to Catch Up
oleibman Jan 10, 2025
0e3eb2b
Experiment with Different Phpunit Xml Dists
oleibman Jan 12, 2025
737cb37
Remove Logging from 7.8 Config
oleibman Jan 12, 2025
5084642
More Phpunit Tweaking
oleibman Jan 12, 2025
4280dab
Merge branch 'master' into wordunimplemented2
oleibman Jan 15, 2025
d1a16fe
Update HtmlTest.php
oleibman Jan 15, 2025
93daccb
Merge branch 'master' into wordunimplemented2
oleibman Jan 25, 2025
870c827
Merge branch 'master' into wordunimplemented2
oleibman Jan 29, 2025
5271a02
Merge branch 'master' into wordunimplemented2
oleibman Jan 30, 2025
f82eb47
Eliminate JSON Dependency
oleibman Jan 30, 2025
3ace770
Improve Test Coverage
oleibman Jan 31, 2025
b1720b9
A Bit More Coverage
oleibman Jan 31, 2025
346ac92
Merge branch 'master' into wordunimplemented2
oleibman Jan 31, 2025
56ea8c0
Merge branch 'master' into wordunimplemented2
oleibman Feb 6, 2025
16904a2
Catch Up
oleibman Feb 6, 2025
92a4c5e
Html Writer Duplicate Header Styles in Style Tags
oleibman Feb 6, 2025
60dbd8c
Keep Up With 2533
oleibman Feb 12, 2025
da21a96
Merge branch 'master' into wordunimplemented2
oleibman Feb 12, 2025
966dabb
Merge branch 'master' into wordunimplemented2
oleibman Feb 13, 2025
616aa35
Merge branch 'master' into wordunimplemented2
oleibman Feb 17, 2025
40cee08
Merge branch 'master' into wordunimplemented2
oleibman Feb 20, 2025
e64a82d
Merge branch 'master' into wordunimplemented2
oleibman Feb 21, 2025
efd5701
Broken Test (not mine)
oleibman Apr 14, 2025
32dd712
Merge branch 'master' into wordunimplemented2
oleibman May 31, 2025
088ae3c
Update Html.php
oleibman May 31, 2025
2a002a7
Merge branch 'master' into wordunimplemented2
oleibman Jun 4, 2025
b351108
Merge branch 'master' into wordunimplemented2
oleibman Jun 13, 2025
1e00185
Catch up With Latest Commits to Master
oleibman Jun 13, 2025
3bf1d9d
Require mbstring
oleibman Jul 23, 2025
b7b30ac
See If I Can Run Nightly
oleibman Jul 23, 2025
2bb935a
Didn't Work
oleibman Jul 23, 2025
76a7d28
Try Nightly Again
oleibman Jul 27, 2025
6238351
Generate Samples for Nightly
oleibman Jul 29, 2025
7a9b50e
Correct Json
oleibman Jul 29, 2025
821e0a5
Tweak
oleibman Jul 29, 2025
b260011
Php8.5 Accommodations
oleibman Aug 25, 2025
ccc5bf4
Accomodate Php7.1/2/3
oleibman Aug 25, 2025
99fcc96
More Php7.1/2/3
oleibman Aug 25, 2025
cd209de
Change Case in Annotation
oleibman Aug 25, 2025
2242a84
Need Double Asterisk in Doc-block
oleibman Aug 25, 2025
3223dba
Coverage Tweaks
oleibman Sep 2, 2025
d685340
Php8.5 Dompdf Adjustment
oleibman Sep 2, 2025
5b6e415
Small yaml Change
oleibman Sep 2, 2025
6445176
Sample Warning in Php8.5
oleibman Sep 2, 2025
6769df2
Sample 11 Fixed for Odt and Docx, Partial for RTF and HTML
oleibman Sep 3, 2025
de2828b
Quick Fix
oleibman Sep 3, 2025
54906ba
More Sample11, Fix Html, RTF Still Incomplete
oleibman Sep 3, 2025
dfd3413
Final (I hope) Changes for Sample11
oleibman Sep 3, 2025
7cac06e
Slight Coverage Improvement
oleibman Sep 3, 2025
2590555
New Tests for Coverage Purposes
oleibman Sep 4, 2025
ddd057e
XmlWriter Vulnerability
oleibman Sep 6, 2025
25d640f
New Dompdf Php8.5 Deprecation
oleibman Sep 6, 2025
e1d13f4
Use 8.3 Rather than 7.3 for Coverage
oleibman Sep 7, 2025
01ed558
Try Again
oleibman Sep 7, 2025
287fbe1
Coverage Tweaks
oleibman Sep 7, 2025
21fc5ab
More Coverage Tweaks
oleibman Sep 7, 2025
cb16229
Missed a Period
oleibman Sep 7, 2025
e7b2e47
Cover 1 More Statement
oleibman Sep 7, 2025
2f34bcf
Limit Phpstan to One Run
oleibman Sep 8, 2025
09602d7
Multiple Phpstan's
oleibman Sep 8, 2025
c467856
Fix 8.0 Phpstan, Partial Fix for Php7 Phpstans
oleibman Sep 8, 2025
898d85e
See If We Can Fix Phpstan for Php 7.4
oleibman Sep 8, 2025
923e7a6
Try again for 7.4 but at least one more will be needed
oleibman Sep 8, 2025
9de7077
Keep Trying 7.4 Phpstan
oleibman Sep 8, 2025
985cff4
Keep Trying
oleibman Sep 8, 2025
2e55a7c
Getting Closer
oleibman Sep 8, 2025
f74b583
Maybe this time?
oleibman Sep 8, 2025
3637da1
Try to fix Phpstan Php7.2/3
oleibman Sep 8, 2025
2a5f1d4
Fix Typo
oleibman Sep 8, 2025
80976c2
This might do it
oleibman Sep 8, 2025
5472a46
Fix Php8.5 Deprecation
oleibman Sep 8, 2025
1017979
Prep In Case Php8.5 Goes Ahead With Deprecating __wakeup
oleibman Sep 9, 2025
3b67bdd
Phpstan Php7.3 Report Unmatched Ignored Errors
oleibman Sep 9, 2025
abe4268
Php8.5 __wakeup Deprecation Implemented
oleibman Sep 13, 2025
34a9094
Upgrade Phpstan
oleibman Sep 13, 2025
c96dac1
Fix Phpstan 7.2/3
oleibman Sep 13, 2025
bae770e
Add Reader/MsDoc to Phpstan
oleibman Sep 14, 2025
fc15bea
Add Shared/OLERead to Phpstan
oleibman Sep 14, 2025
6af7984
Run Samples as Part of Unit Tests
oleibman Sep 14, 2025
b33163b
Adapt Code for Php 7.1/2/3
oleibman Sep 14, 2025
ffc33ca
Upgrade Symfony/Process
oleibman Sep 14, 2025
469f31e
Php8.5 Will Need Unreleased Symfony/Process 7.3.4
oleibman Sep 14, 2025
ae88c4f
Another Stab at Symfony/process
oleibman Sep 14, 2025
18b1384
Rerun Coverage
oleibman Sep 15, 2025
6024ee4
Update Dompdf to Php8.5-compatible version
oleibman Sep 22, 2025
8ee8fe8
Small Coverage Improvements
oleibman Sep 22, 2025
40a8013
More Coverage for Writer Html Ruby
oleibman Sep 22, 2025
45a9d32
Fix PHPMD Problem
oleibman Sep 22, 2025
9075817
Test if Coveralls is Fixed
oleibman Sep 24, 2025
28c7540
More Coveralls Experiments
oleibman Sep 24, 2025
c6403b0
More Coveralls Experiments
oleibman Sep 24, 2025
b5ff8d1
Yet Another Coveralls Experiment
oleibman Sep 25, 2025
0dad8de
Still More Coverage
oleibman Sep 25, 2025
7591e61
A Little More Coverage
oleibman Sep 25, 2025
94cb3d6
Recognize Type on Nested List
oleibman Sep 26, 2025
88d9b72
Autoloader Wasn't Really Tested
oleibman Sep 27, 2025
78c4075
Retry Prior Change
oleibman Sep 27, 2025
b8d51c2
Replace spl_object_id with spl_object_hash
oleibman Sep 27, 2025
dbd5863
Improve Ruby Support for Odtext
oleibman Sep 27, 2025
d716beb
More Coverage
oleibman Sep 27, 2025
129d43b
Field Updates
oleibman Sep 28, 2025
7fa0337
Experiment with symfony/polyfill-php72
oleibman Sep 28, 2025
5ace17f
Some Tweaks for Fields
oleibman Sep 29, 2025
29cfaaf
More Coverage
oleibman Sep 29, 2025
b5f4c2a
Pdf Improvements
oleibman Sep 29, 2025
9408c1d
Still More Coverage
oleibman Sep 29, 2025
a96f0a3
Tweak Text
oleibman Sep 30, 2025
6536f5c
Minor Tweaks
oleibman Sep 30, 2025
1921cbd
Mysterious Failure with PhpUnit 7/8/9
oleibman Sep 30, 2025
9ee3349
Try preserveGlobalState
oleibman Sep 30, 2025
c7f6a80
Start to Eliminate Most Tests in Separate Processes
oleibman Sep 30, 2025
ec23a9c
Weirdness in One Test for Phpunit 9 (Php7.* and Php8.0)
oleibman Sep 30, 2025
763e34c
Convert More Separate Process Tests
oleibman Oct 1, 2025
9309e04
Try Another Means to Generate Zip Close Failure
oleibman Oct 1, 2025
30a56b0
Eliminate More Test Separate Processes
oleibman Oct 1, 2025
908a70b
3 Related Test Failures
oleibman Oct 1, 2025
dc176e6
Finish Unneeded Separate Processes
oleibman Oct 3, 2025
f4aea96
Different Way to Deal With Coveralls Failure
oleibman Oct 4, 2025
2e61f10
Confirm Warnings etc. Become Exceptions
oleibman Oct 4, 2025
3af64e4
More Coverage
oleibman Oct 4, 2025
ca6d2f0
Replace obsolete php-cs-fixer option
oleibman Oct 9, 2025
6bdb27a
No Need for getMockForAbstractClass
oleibman Nov 16, 2025
8bbd65d
Fix Phpstan for Php7.2/3
oleibman Nov 16, 2025
61f6b83
Make Phpstan Upgrades Manual
oleibman Nov 16, 2025
89168b3
See if Phpstan 7.4 Can Run Same as Phpstan 8.0+
oleibman Nov 16, 2025
5197f16
Phpstan for 7.4 Can Run Same Action as for 8.0+
oleibman Nov 16, 2025
8545130
Update Phpstan for Php 7.2/7.3
oleibman Nov 16, 2025
882f98f
Tweak
oleibman Nov 16, 2025
b577547
Rasamassen PR's 2815, 2816, 2830, 2840
oleibman Nov 17, 2025
a5dd310
Rasamassen PR's 2819 and part of 2821
oleibman Nov 18, 2025
fffe56d
Phpstan 7.2/7.3/7.4
oleibman Nov 19, 2025
c775a2e
Rasamassen PR's 2821 and 2823
oleibman Nov 19, 2025
acb2e37
Coverage Tweaks
oleibman Nov 19, 2025
ba408a8
RTF Writer Support ListItem Font Styles
oleibman Nov 20, 2025
7d3e009
Rasamassen PR's 2824 and 2826
oleibman Nov 21, 2025
38d1a6a
Coverage Tweaks
oleibman Nov 21, 2025
598f6ae
Formal Support for Php8.5
oleibman Nov 22, 2025
3efc30e
Rasamassen PR's 2836, 2839, and 2850
oleibman Nov 23, 2025
cbda0b6
Avoid Php8.5 Deprecations
oleibman Nov 23, 2025
1fc73d4
Rasamassen PR's 2817, 2834, and 2835
oleibman Nov 23, 2025
a081351
Another Php8.5 Deprecation
oleibman Nov 23, 2025
e592785
Mysterious Php8.0 Failure
oleibman Nov 23, 2025
6297738
Rasamassen PR 2838
oleibman Nov 24, 2025
7422bce
Another Php8.5 Deprecation
oleibman Nov 24, 2025
35efca0
RTF Writer Border Styles for Paragraphs
oleibman Nov 24, 2025
21711d1
Some Fixes
oleibman Nov 26, 2025
3961854
Improve Coverage
oleibman Nov 26, 2025
4f22889
Another Coverage Tweak
oleibman Nov 26, 2025
64f0de9
Handle Style Objects Passed to Element Constructors
oleibman Nov 29, 2025
f924e99
Less Mockery
oleibman Nov 29, 2025
5a03a03
Word2007 Writer Support for SVG
oleibman Nov 30, 2025
fc77d44
Php8.5 Deprecation in Dompdf Handling of SVG
oleibman Nov 30, 2025
524b263
Template Processor Support for SVG
oleibman Dec 9, 2025
095baa9
A Bit More Coverage
oleibman Dec 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
101 changes: 62 additions & 39 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
fail-fast: false
matrix:
# Disabled PHPStan in '7.1'
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -60,65 +60,88 @@ jobs:
- name: Composer Install
run: composer install --ansi --prefer-dist --no-interaction --no-progress

- name: Run phpstan
- name: Run phpstan Php7.2/Php7.3
if: matrix.php == '7.2' || matrix.php == '7.3'
run: ./vendor/bin/phpstan analyse -c phpstan.neon.php73.dist

- name: Run phpstan Php8/Php7.4
if: matrix.php == '7.4' || matrix.php == '8.0' || matrix.php == '8.1' || matrix.php == '8.2' || matrix.php == '8.3' || matrix.php == '8.4' || matrix.php == '8.5'
run: ./vendor/bin/phpstan analyse -c phpstan.neon.dist

phpunit:
name: PHPUnit ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
experimental:
- false
php:
- '7.1'
- '7.2'
- '7.3'
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
- '8.4'
- '8.5'

include:
- php: 'nightly'
experimental: true

name: PHPUnit ${{ matrix.php }}

steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: gd, xml, zip
coverage: ${{ (matrix.php == '7.3') && 'xdebug' || 'none' }}
extensions: dom, gd, mbstring, xml, zip
coverage: ${{ (matrix.php == '8.3') && 'xdebug' || 'none' }}

- uses: actions/checkout@v2

- name: Composer Config nightly
if: matrix.php == 'nightly'
run: composer config platform.php 8.5.99

- name: Composer Install
run: composer install --ansi --prefer-dist --no-interaction --no-progress

- name: Run phpunit
if: matrix.php != '7.3'
run: ./vendor/bin/phpunit -c phpunit.xml.dist --no-coverage
- name: Run phpunit 7.1 7.2
if: matrix.php == '7.1' || matrix.php == '7.2'
run: ./vendor/bin/phpunit -c phpunit.7.8.xml.dist --no-coverage

- name: Run phpunit
if: matrix.php == '7.3'
run: ./vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/clover.xml
- name: Run phpunit 7.3 7.4 8.0
if: matrix.php == '7.3' || matrix.php == '7.4' || matrix.php == '8.0'
run: ./vendor/bin/phpunit -c phpunit9.xml.dist --no-coverage

- name: Upload coverage results to Coveralls
if: matrix.php == '7.3'
- name: Run phpunit 8.1 8.2 8.4 8.5
if: matrix.php == '8.1' || matrix.php == '8.2' || matrix.php == '8.4' || matrix.php == '8.5'
run: ./vendor/bin/phpunit -c phpunit10.xml.dist --no-coverage

- name: Run phpunit nightly experimental
if: matrix.php == 'nightly'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar
chmod +x php-coveralls.phar
php php-coveralls.phar --coverage_clover=build/clover.xml --json_path=build/coveralls-upload.json -vvv

samples:
name: Check samples
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: gd, xml, zip
coverage: xdebug
FAILURE_ACTION: "${{ matrix.experimental == true }}"
run: ./vendor/bin/phpunit -c phpunit10.xml.dist --no-coverage || $FAILURE_ACTION

- uses: actions/checkout@v2
- name: Test non-Composer Autoloader
env:
FAILURE_ACTION: "${{ matrix.experimental == true }}"
run: php samples/Sample_45_Autoloader.php

- name: Composer Install
run: composer install --ansi --prefer-dist --no-interaction --no-progress
- name: Run phpunit 8.3
if: matrix.php == '8.3'
run: ./vendor/bin/phpunit -c phpunit10.xml.dist --coverage-clover build/clover.xml

- name: Generate samples files
run: composer run samples
- name: Upload coverage results to Coveralls
if: matrix.php == '8.3'
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: build/clover.xml
format: clover
fail-on-error: false
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
Thumbs.db
Desktop.ini
.idea
/analysis
_build
/build
phpunit.xml
composer.phar
composer.lock
vendor
/report
/build
/samples/results
/.settings
phpword.ini
Expand All @@ -25,4 +25,5 @@ phpword.ini
/nbproject
/.php_cs.cache
/.phpunit.result.cache
/public
/.phpunit.cache
/public
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ PHPWord requires the following:

- PHP 7.1+
- [XML Parser extension](http://www.php.net/manual/en/xml.installation.php)
- [Laminas Escaper component](https://docs.laminas.dev/laminas-escaper/intro/)
- [Zip extension](http://php.net/manual/en/book.zip.php) (optional, used to write OOXML and ODF)
- [GD extension](http://php.net/manual/en/book.image.php) (optional, used to add images)
- [XMLWriter extension](http://php.net/manual/en/book.xmlwriter.php) (optional, used to write OOXML and ODF)
Expand Down Expand Up @@ -129,7 +128,7 @@ $fontStyle = new \PhpOffice\PhpWord\Style\Font();
$fontStyle->setBold(true);
$fontStyle->setName('Tahoma');
$fontStyle->setSize(13);
$myTextElement = $section->addText('"Believe you can and you\'re halfway there." (Theodor Roosevelt)');
$myTextElement = $section->addText('"Believe you can and you\'re halfway there." (Theodore Roosevelt)');
$myTextElement->setFontStyle($fontStyle);

// Saving the document as OOXML file...
Expand Down
19 changes: 11 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@
"php samples/Sample_42_TemplateSetCheckbox.php",
"php samples/Sample_43_RTLDefault.php",
"php samples/Sample_44_ExtractVariablesFromReaderWord2007.php",
"php samples/Sample_45_Autoloader.php"
"php samples/Sample_45_Autoloader.php",
"php samples/Sample_46_RubyPhoneticGuide.php",
"php samples/Sample_47_RTLTitles.php"
]
},
"scripts-descriptions": {
Expand All @@ -108,22 +110,23 @@
"require": {
"php": "^7.1|^8.0",
"ext-dom": "*",
"ext-gd": "*",
"ext-zip": "*",
"ext-json": "*",
"ext-gd": "*",
"ext-mbstring": "*",
"ext-xml": "*",
"phpoffice/math": "^0.3"
"ext-zip": "*",
"phpoffice/math": "^0.3",
"symfony/polyfill-php72": "^1.30"
},
"require-dev": {
"ext-libxml": "*",
"dompdf/dompdf": "^2.0 || ^3.0",
"friendsofphp/php-cs-fixer": "^3.3",
"mpdf/mpdf": "^7.0 || ^8.0",
"phpmd/phpmd": "^2.13",
"phpstan/phpstan": "^0.12.88 || ^1.0.0 || ^2.0.0",
"phpstan/phpstan": "<=2.1.32",
"phpstan/phpstan-phpunit": "^1.0 || ^2.0",
"phpunit/phpunit": ">=7.0",
"symfony/process": "^4.4 || ^5.0",
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0 || ^10.0",
"symfony/process": "^4.4 || ^5.0 || ^6.0 || ^7.0 || 7.4.x-dev",
"tecnickcom/tcpdf": "^6.5"
},
"suggest": {
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ $fontStyle = new \PhpOffice\PhpWord\Style\Font();
$fontStyle->setBold(true);
$fontStyle->setName('Tahoma');
$fontStyle->setSize(13);
$myTextElement = $section->addText('"Believe you can and you\'re halfway there." (Theodor Roosevelt)');
$myTextElement = $section->addText('"Believe you can and you\'re halfway there." (Theodore Roosevelt)');
$myTextElement->setFontStyle($fontStyle);

// Saving the document as OOXML file...
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/template.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Customer: ${customer_name#3}
Address: ${customer_address#3}
```

It is also possible to pass an array with the values to replace the marcros with.
It is also possible to pass an array with the values to replace the macros with.
If an array with replacements is passed, the ``count`` argument is ignored, it is the size of the array that counts.

``` php
Expand Down
Loading