Comments (11)
Thanks for reporting! I'll try to take a look later
from sonataintlbundle.
Please, note that "twig/intl-extra" is not an opt in replacement, since it doesn't provide the same features than this project.
By instance, the locale inference provided here through LocaleDetectorInterface
is not available.
Other example pointed here #280 (comment).
from sonataintlbundle.
Fixed in sonata-project/SonataAdminBundle#5981
from sonataintlbundle.
This issue is not fixed at all. There is just a fix for one of our bundles. The error still occurs if you try to call format_datetime
somewhere in your code.
See: sonata-project/SonataNewsBundle#591
from sonataintlbundle.
IMHO the only way to fix this issue is to check the arguments you pass to the filter and delegate this to the twig filter if necesary.
from sonataintlbundle.
This could fix the problem: #302
from sonataintlbundle.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from sonataintlbundle.
I just encountered this bug
Twig\Extra\Intl\IntlExtension::formatDateTime(): Argument #5 ($pattern) must be of type string, null given
I'm using both SonataAdmin and SonataIntl.
Shouldn't we prefix every method here by sonata_
and deprecate the old name ?
@franmomu @phansys @core23 @jordisala1991 WDYT ?
from sonataintlbundle.
We could probably move the release of 3.0 for this bundle (it was never done) and rename those functions in the process.
from sonataintlbundle.
Because this bundle adds some value right? Or the things done here can be done with a combination of official twig extra packages?
from sonataintlbundle.
We could probably move the release of 3.0 for this bundle (it was never done) and rename those functions in the process.
Yes, this is what I had in mind with #512
from sonataintlbundle.
Related Issues (20)
- Add a tag for symfony 3 support HOT 5
- Cache number and date formatters? HOT 5
- Drop support for old php / symfony versions
- Region ignored in language filter HOT 3
- Allow Twig 2 HOT 6
- Why intl bundle conflicts with user bundle ? HOT 1
- Conflict issue with user-bundle HOT 13
- Deprecate some Twig extensions HOT 2
- Provide autowiring for DateTimeHelper HOT 3
- Strict type checking introduced in 2.6.0 throws error on Doctrine decimal type HOT 1
- Problem with twig datetime extension for twig 2.10
- Deprecate this bundle HOT 14
- Incompatible with php8 HOT 4
- Strict type checking throws error on formatting Doctrine decimal type as number HOT 11
- sonata.intl.templating.helper.number service does not exist
- RequestStackDetector does not have the default locale anymore. HOT 2
- Make Templating Dependency Optional
- Sonata\IntlBundle\Helper\BaseHelper::getLocale() problem HOT 11
- default for locale must not null in list_decimal.html.twig HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonataintlbundle.